CN111324832A - Method, system, device and medium for accessing website through short network address - Google Patents

Method, system, device and medium for accessing website through short network address Download PDF

Info

Publication number
CN111324832A
CN111324832A CN202010191873.0A CN202010191873A CN111324832A CN 111324832 A CN111324832 A CN 111324832A CN 202010191873 A CN202010191873 A CN 202010191873A CN 111324832 A CN111324832 A CN 111324832A
Authority
CN
China
Prior art keywords
website
network address
short
long
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010191873.0A
Other languages
Chinese (zh)
Inventor
朱正楠
周枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Joylin Wireless Information Technology Co ltd
Original Assignee
Suzhou Joylin Wireless Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Joylin Wireless Information Technology Co ltd filed Critical Suzhou Joylin Wireless Information Technology Co ltd
Priority to CN202010191873.0A priority Critical patent/CN111324832A/en
Publication of CN111324832A publication Critical patent/CN111324832A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a system, a device and a medium for accessing a website through a short website, which can enable a user to access the original long website connection through the short website, facilitate recording and sharing, improve user experience, and are suitable for website popularization, character marketing and social product sharing link, and the method comprises the following steps: step 1: a user sends a short website access request; step 2: acquiring a long website address of a website; and step 3: generating a short network address corresponding to the long network address; and 4, step 4: returning to the short website; and 5: inputting a short website for access, acquiring a corresponding long website according to the short website, and jumping to the long website to log in the website.

Description

Method, system, device and medium for accessing website through short network address
Technical Field
The invention relates to the technical field of website access, in particular to a method, a system, a device and a medium for accessing a website through a short website.
Background
With the development of networks, the use frequency of the networks is increased explosively, and web pages become the most basic way to access the networks. Inputting http:// www.gov.cn/such web address in the browser, resolving the input address by DNS (Domain name System service protocol), and acquiring and accessing the IP address corresponding to the address. The browser sends an http request to the Web server, the system receives the access in an SSM (Spring + Spring MVC + MyBatis) frame, the Controller performs interface matching and executes a corresponding method according to url in the request, and then returns content to the browser according to the content of the code to make corresponding feedback.
Nowadays, due to the great popularization of mobile phones and social products, the sharing of websites also becomes the daily operation of people. The length of web sites and the content they compose are becoming more complex. For example, the address of a search engine may be very long, and it is cumbersome to share with others, record, and write documents.
Disclosure of Invention
In view of the above problems, the present invention provides a method, system, device and medium for accessing a website through a short website, which enables a user to access an original long website connection through a short website, facilitates recording and sharing, improves user experience, and is suitable for website promotion, text marketing and social product sharing link.
The technical scheme is as follows: a method for accessing a website through a short web site, comprising the steps of:
step 1: a user sends a short website access request;
step 2: acquiring a long website address of a website;
and step 3: generating a short network address corresponding to the long network address;
and 4, step 4: returning to the short website;
and 5: inputting a short website for access, acquiring a corresponding long website according to the short website, and jumping to the long website to log in the website.
Further, in step 1, an access interface is provided through the SSM framework for the user to send a short website access request, and the user accesses the access interface according to the interface address and transmits a long website of a website to be converted.
Further, in step 3, generating the short network address corresponding to the long network address specifically includes the following steps:
step 301: storing the long network address into a database, and recording a self-increment number for the long network address;
step 302: converting the self-increment number into a 62-system character;
step 303: and the domain name of the server where the splicing database is located and the characters corresponding to the self-increment numbers under the 62-system scale form a short website.
Further, in step 3, it is detected whether the long network address already exists, if so, the corresponding short network address is directly taken out from the database, otherwise, steps 301 to 303 are executed.
Further, in step 3, the long network address is provided with a retention period in the database, if the long network address is not accessed again within the retention period, the long network address and the short network address information corresponding to the long network address are deleted from the database, and if the long network address is accessed again within the retention period, the retention period is counted again.
A system for accessing a web site through a short web site, comprising:
the request unit is used for sending a short network address access request;
the acquisition unit is used for acquiring a long website address of a website;
a conversion unit for generating a short network address corresponding to the long network address;
a returning unit for returning the short website;
and the access unit is used for inputting the short network address for access, acquiring the corresponding long network address according to the short network address, and jumping to the long network address to log in the website.
Furthermore, the request unit provides an access interface through the SSM framework for a user to send a short website access request, and the user accesses the access interface according to the interface address and transmits a long website of a website to be converted.
Further, the conversion unit includes:
the storage module is used for storing the long network address into a database and recording a self-increment number for the long network address;
the conversion module is used for converting the self-increment numbers into 62-system characters;
and the splicing module is used for splicing the domain name of the server where the database is located and the characters corresponding to the self-increment numbers under the 62-system to form the short website.
Further, the conversion unit further includes:
and the detection module is used for detecting whether the long network address exists or not, directly taking out the corresponding short network address from the database if the long network address exists, and otherwise, generating the short network address through the storage module, the conversion module and the splicing module.
And the file storage module is used for setting a retention period in the database for the long network address, deleting the long network address and the short network address information corresponding to the long network address from the database if the long network address is not accessed again within the retention period, and counting the retention period again if the long network address is accessed again within the retention period.
An apparatus for accessing a website via a short address, comprising: comprising a processor, a memory, and a program;
the program is stored in the memory, and the processor calls the program stored in the memory to execute the method for accessing the website through the short website.
A computer-readable storage medium characterized by: the computer-readable storage medium is configured to store a program configured to perform the above-described method of accessing a website through a short website.
The invention has the following advantages: the user can give the long website needing to be converted through the interface provided by the system, the interface returns the generated short website, the user can jump to the original long website by accessing the short website, and therefore the purpose of access is achieved, the user can access the original long website through the short website to be connected, compared with the long website, the short website is convenient for text transmission, and is more convenient to popularize or share, the conversion efficiency is accelerated by generating the short website in batches, the recording and sharing are convenient, the user experience is improved, and the system is suitable for website popularization, text marketing and social product sharing link.
Drawings
FIG. 1 is a flow chart of a method of accessing a website via a short web address in accordance with the present invention;
FIG. 2 is a block diagram of a system for accessing a website via a short address according to the present invention;
fig. 3 is a block diagram of the conversion unit of the present invention.
Detailed Description
Referring to fig. 1, a method for accessing a website through a short website according to the present invention includes the following steps:
step 1: a user sends a short website access request;
step 2: acquiring a long website address of a website;
and step 3: generating a short network address corresponding to the long network address;
and 4, step 4: returning to the short website;
and 5: inputting a short website for access, acquiring a corresponding long website according to the short website, and jumping to the long website to log in the website.
Specifically, in this embodiment, in step 3, generating the short network address corresponding to the long network address specifically includes the following steps:
step 301: storing the long network address into a database, and recording a self-increment number for the long network address;
step 302: converting the self-increment number into a 62-system consisting of upper and lower case letters and numbers;
step 303: and the domain name of the server where the splicing database is located and the characters corresponding to the self-increment numbers under the 62-system scale form a short website.
In this embodiment, in step 3, before performing steps 301 to 303, it is detected whether the long network address already exists, if so, the corresponding short network address is directly fetched from the database, otherwise, steps 301 to 303 are performed;
the long network address is provided with a retention period in the database, if the long network address is not accessed again within the retention period, the long network address and the corresponding short network address information are deleted from the database, and if the long network address is accessed again within the retention period, the retention period is counted again.
Referring to fig. 2, in an embodiment of the present invention, there is further provided a system for accessing a website through a short website, including:
a request unit 1, configured to send a short network address access request;
the acquisition unit 2 is used for acquiring a long website address of a website;
a conversion unit 3 for generating a short network address corresponding to the long network address;
a returning unit 4, configured to return a short website;
and the access unit 5 is used for inputting the short website for access, acquiring the corresponding long website according to the short website, and jumping to the long website to log in the website.
Specifically, the request unit provides an access interface through the SSM framework for the user to send a short website access request, and the user accesses the access interface according to the interface address and transmits the long website of the website to be converted.
Referring to fig. 3, in particular, the conversion unit includes:
the storage module 3-1 is used for storing the long network address into a database and recording a self-increment number for the long network address;
the conversion module 3-2 is used for converting the self-increment numbers into 62-system characters;
the splicing module 3-3 is used for splicing the domain name of the server where the database is located and the characters corresponding to the self-increment numbers under the 62-system to form a short website;
and the detection module 3-4 is used for detecting whether the long network address exists or not, and if so, directly taking out the corresponding short network address from the database.
The archive module 3-5 is used for setting a retention period in the database for the long network address, deleting the long network address and the short network address information corresponding to the long network address from the database if the long network address is not accessed again within the retention period, and counting the retention period again if the long network address is accessed again within the retention period, so that the design can avoid repeated generation and resource occupation, and in the embodiment, the system can inquire whether the long network address appears within 15 days in the database; and if the existing long website exists, directly taking out the corresponding short website from the database, otherwise, producing the short website through the storage module, the conversion module and the splicing module.
Specifically, in this embodiment, an access interface is provided by an SSM framework for a user to send a short website access request, the user accesses the access interface according to the interface address and transmits a long website to be converted, the system generates a short website according to transmitted parameters, records the short website in a database and returns the short website to the user, the user inputs the short website in a browser, accesses a generic interface of the system according to the domain name of the short website, acquires an original corresponding long website in the database according to the interface name, and jumps to access the long website, thereby achieving the purpose of access.
According to the system for accessing the website through the short website, a user can give the long website to be converted through the interface provided by the system, the interface returns to the generated short website, the user can jump to the original long website by accessing the short website, so that the purpose of accessing is achieved, the user can access the original long website through the short website to be connected, compared with the long website, the short website is convenient for text transmission and is more convenient and fast to popularize or share, the conversion efficiency is accelerated by generating the short websites in batches, the recording and sharing are convenient, the user experience is improved, and the system is suitable for website popularization, marketing texts and social product sharing link.
In an embodiment of the present invention, an apparatus for accessing a website through a short website includes: comprising a processor, a memory, and a program;
a program is stored in the memory and the processor invokes the program stored in the memory to perform the method described above for accessing a website via a short address.
In the above-mentioned implementation of the device for accessing a website through a short website, the memory and the processor are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus. The memory stores computer-executable instructions for implementing the data access control method, and includes at least one software functional module which can be stored in the memory in the form of software or firmware, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions.
The processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In an embodiment of the present invention, there is also provided a computer-readable storage medium configured to store a program configured to execute the above-described method of accessing a website through a short website.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, systems, apparatuses and computer program products according to embodiments of the invention. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart.
The method for accessing a website through a short website, the system for accessing a website through a short website, the device for accessing a website through a short website, and the application of a computer-readable storage medium provided by the present invention have been described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for accessing a website through a short web site, comprising the steps of:
step 1: a user sends a short website access request;
step 2: acquiring a long website address of a website;
and step 3: generating a short network address corresponding to the long network address;
and 4, step 4: returning to the short website;
and 5: inputting a short website for access, acquiring a corresponding long website according to the short website, and jumping to the long website to log in the website.
2. The method of claim 1, wherein the method comprises: in step 1, an access interface is provided through an SSM framework for a user to send a short website access request, and the user accesses the access interface according to an interface address and transmits a long website of a website to be converted.
3. The method of claim 1, wherein the method comprises: in step 3, generating the short network address corresponding to the long network address specifically includes the following steps:
step 301: storing the long network address into a database, and recording a self-increment number for the long network address;
step 302: converting the self-increment number into a 62-system character;
step 303: and the domain name of the server where the splicing database is located and the characters corresponding to the self-increment numbers under the 62-system scale form a short website.
4. A method for accessing a website through a short website as recited in claim 3, wherein: in step 3, detecting whether the long network address already exists, if so, directly taking out the corresponding short network address from the database, otherwise, executing steps 301 to 303.
5. The method of claim 4, wherein the method comprises: in step 3, the long network address is provided with a retention period in the database, if the long network address is not accessed again within the retention period, the long network address and the corresponding short network address information are deleted from the database, and if the long network address is accessed again within the retention period, the retention period is counted again.
6. A system for accessing a web site through a short web site, comprising:
the request unit is used for sending a short network address access request;
the acquisition unit is used for acquiring a long website address of a website;
a conversion unit for generating a short network address corresponding to the long network address;
a returning unit for returning the short website;
and the access unit is used for inputting the short network address for access, acquiring the corresponding long network address according to the short network address, and jumping to the long network address to log in the website.
7. The system of claim 6, wherein the short web site comprises: the request unit provides an access interface through the SSM framework for a user to send a short website access request, and the user accesses the access interface according to the interface address and transmits a long website of a website to be converted.
8. The system of claim 6, wherein the short web site comprises: the conversion unit includes:
the storage module is used for storing the long network address into a database and recording a self-increment number for the long network address;
the conversion module is used for converting the self-increment numbers into 62-system characters;
and the splicing module is used for splicing the domain name of the server where the database is located and the characters corresponding to the self-increment numbers under the 62-system to form the short website.
And the detection module is used for detecting whether the long network address exists or not, directly taking out the corresponding short network address from the database if the long network address exists, and otherwise, generating the short network address through the storage module, the conversion module and the splicing module.
And the file storage module is used for setting a retention period in the database for the long network address, deleting the long network address and the short network address information corresponding to the long network address from the database if the long network address is not accessed again within the retention period, and counting the retention period again if the long network address is accessed again within the retention period.
9. An apparatus for accessing a website via a short address, comprising: comprising a processor, a memory, and a program;
the program is stored in the memory, and the processor calls the program stored in the memory to execute the method for accessing the website through the short website.
10. A computer-readable storage medium characterized by: the computer-readable storage medium is configured to store a program configured to perform the above-described method of accessing a website through a short website.
CN202010191873.0A 2020-03-18 2020-03-18 Method, system, device and medium for accessing website through short network address Pending CN111324832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010191873.0A CN111324832A (en) 2020-03-18 2020-03-18 Method, system, device and medium for accessing website through short network address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010191873.0A CN111324832A (en) 2020-03-18 2020-03-18 Method, system, device and medium for accessing website through short network address

Publications (1)

Publication Number Publication Date
CN111324832A true CN111324832A (en) 2020-06-23

Family

ID=71167746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010191873.0A Pending CN111324832A (en) 2020-03-18 2020-03-18 Method, system, device and medium for accessing website through short network address

Country Status (1)

Country Link
CN (1) CN111324832A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438331A (en) * 2021-05-10 2021-09-24 杭州博联智能科技股份有限公司 Short domain name management method, system, electronic device and storage medium
CN114448930A (en) * 2022-03-15 2022-05-06 平安科技(深圳)有限公司 Short address generation method and device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060149730A1 (en) * 2004-12-30 2006-07-06 Curtis James R Client authenticated web browser with access approval mechanism
CN106156048A (en) * 2015-03-27 2016-11-23 腾讯科技(深圳)有限公司 Method and apparatus and communication system that short URL services are provided
CN107545070A (en) * 2017-09-19 2018-01-05 付林林 Website access method, device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060149730A1 (en) * 2004-12-30 2006-07-06 Curtis James R Client authenticated web browser with access approval mechanism
CN106156048A (en) * 2015-03-27 2016-11-23 腾讯科技(深圳)有限公司 Method and apparatus and communication system that short URL services are provided
CN107545070A (en) * 2017-09-19 2018-01-05 付林林 Website access method, device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438331A (en) * 2021-05-10 2021-09-24 杭州博联智能科技股份有限公司 Short domain name management method, system, electronic device and storage medium
CN114448930A (en) * 2022-03-15 2022-05-06 平安科技(深圳)有限公司 Short address generation method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10839038B2 (en) Generating configuration information for obtaining web resources
CN109582395B (en) Applet running method and device, electronic equipment and storage medium
CN109033406B (en) Method, apparatus and storage medium for searching blockchain data
CN109033403B (en) Method, apparatus and storage medium for searching blockchain data
CN108256888B (en) Landing page acquisition method, website server and network advertisement monitoring system
CN110750741A (en) Webpage link skipping processing method, computer device and storage medium
CN109902247B (en) Page rendering method and device and electronic equipment
TW201800962A (en) Webpage file sending method, webpage rendering method and device and webpage rendering system
CN111324832A (en) Method, system, device and medium for accessing website through short network address
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN109194776B (en) Detection method, system, electronic device and medium
CN110865834B (en) Application program interface updating method and device, readable storage medium and terminal equipment
CN104954363A (en) Method and device for generating interface document
CN106899689B (en) Information pre-issuing method and server
JP5039946B2 (en) Technology for relaying communication between client devices and server devices
CN109086414B (en) Method, apparatus and storage medium for searching blockchain data
CN112947900B (en) Web application development method and device, server and development terminal
CN105068926A (en) Program test method and device thereof
CN112347383A (en) Sharing link generation method and device and electronic equipment
CN104980311A (en) Method, device and system for predicting network access
CN111680247A (en) Local calling method, device, equipment and storage medium of webpage character string
CN116304403A (en) Webpage access method and device, computer equipment and storage medium
CN103139298A (en) Method for transmitting network data and device
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN111931159B (en) Method and system for verifying validity of webpage data interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination