CN103428309B - Quick Response Code redirect processing method - Google Patents
Quick Response Code redirect processing method Download PDFInfo
- Publication number
- CN103428309B CN103428309B CN201310355945.0A CN201310355945A CN103428309B CN 103428309 B CN103428309 B CN 103428309B CN 201310355945 A CN201310355945 A CN 201310355945A CN 103428309 B CN103428309 B CN 103428309B
- Authority
- CN
- China
- Prior art keywords
- code
- url
- address
- code number
- dimensional code
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 6
- 238000000034 method Methods 0.000 description 5
- 230000009191 jumping Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
二维码跳转处理方法,其步骤如下:二维码的生成,设定跳转系统的网址,那么根据码号生成规则获得码号;将所述的码号接续到所述的跳转系统的网址后面,获得完整的指代地址;将所述的指代地址作为二维码内容进行二维码的生成,同时添加这个二维码对应的真实的URL地址到跳转系统数据库中,对应关系为一个码号对应一个URL地址;客户端通过微信,快拍等等常规二维码扫描软件扫描这个二维码,得到指代地址,调用系统默认浏览器访问这个网址;服务器端接受到请求后,进行URL重写识别,使得URL重写规则可以获取到码号;服务器页面根据获取到的请求参数中的码号,进行数据库的匹配,获取到真实的URL地址,引导到真实的网址上。
Two-dimensional code jump processing method, its steps are as follows: the generation of two-dimensional code, set the URL of the jump system, then obtain the code number according to the code number generation rule; connect the described code number to the described jump system After the website address, obtain the complete reference address; use the reference address as the content of the QR code to generate the QR code, and add the real URL address corresponding to the QR code to the jump system database, corresponding The relationship is that a code number corresponds to a URL address; the client scans the QR code through WeChat, Snapshots and other conventional QR code scanning software to obtain the referring address, and calls the system default browser to access this URL; the server receives the request Finally, URL rewriting identification is performed, so that the URL rewriting rule can obtain the code number; the server page performs database matching according to the code number in the obtained request parameter, obtains the real URL address, and leads to the real URL .
Description
技术领域technical field
本发明属于移动互联网领域,特别涉及一种针对二维码跳转的处理方法。The invention belongs to the field of mobile Internet, and in particular relates to a processing method for two-dimensional code jumping.
背景技术Background technique
二维码(2-dimensionalbarcode),又称二维条码,最早起源于日本,它是用特定的几何图形按一定规律在平面(二维方向)上分布的黑白相间的图形,是所有信息数据的一把钥匙。在现代商业活动中,可实现的应用十分广泛,如:产品防伪/溯源、广告推送、网站链接、数据下载、商品交易、定位/导航、电子凭证、车辆管理等等。Two-dimensional barcode (2-dimensional barcode), also known as two-dimensional barcode, first originated in Japan. It is a black and white pattern distributed on a plane (two-dimensional direction) with specific geometric figures according to certain rules. It is the key to all information data. A bunch of keys. In modern commercial activities, a wide range of applications can be realized, such as: product anti-counterfeiting/traceability, advertising push, website links, data downloads, commodity transactions, positioning/navigation, electronic vouchers, vehicle management, etc.
目前常规的做法都是直接把真实的URL地址放入二维码中,这种做法存在如下一些弊端At present, the conventional method is to directly put the real URL address into the QR code. This method has the following disadvantages
1、一般网址都比较长,那么内容就多了,解码速度就会降低1. Generally, the URL is relatively long, so the content will be more, and the decoding speed will be reduced
2、如果网址对应的内容换了,则这个二维码就失效了,尤其是印刷到宣传单页之类的纸质媒体上的时候,就需要重新印刷,加大了成本2. If the content corresponding to the URL is changed, the QR code will become invalid, especially when it is printed on paper media such as leaflets, it needs to be reprinted, which increases the cost
3、一些第三方的解码软件会自动加上一些参数,可能会导致解码出来的地址失效,如微信3. Some third-party decoding software will automatically add some parameters, which may cause the decoded address to become invalid, such as WeChat
4、如果网址对应的网站进行了改版,导致了二维码的失效4. If the website corresponding to the URL has been revised, resulting in the invalidation of the QR code
发明内容Contents of the invention
本发明要克服现有的二维码跳转方法存在的上述缺点,提出一种二维码跳转处理方法,用来解决上述的一些问题。The present invention overcomes the above-mentioned shortcomings existing in the existing two-dimensional code jumping method, and proposes a two-dimensional code jumping processing method to solve some of the above-mentioned problems.
本发明的技术方案:Technical scheme of the present invention:
在二维码和各类应用之间搭建二维码跳转系统的中间件,通过跳转系统生成二维码,允许第三方通过拍码,通过二维码识别,实现二维码链接地址跳转,从URL中识别出数据,根据识别出来的码号,从数据库匹配码号,获取到真实访问的URL。同时搭建WAP请求服务,分析请求的URL,实现请求转发,引导访问者访问到相应的资源。Build the middleware of the QR code jump system between the QR code and various applications, generate the QR code through the jump system, and allow the third party to realize the link address jump of the QR code through the QR code recognition through the QR code Turn, identify the data from the URL, match the code number from the database according to the identified code number, and obtain the real visited URL. At the same time, build a WAP request service, analyze the requested URL, implement request forwarding, and guide visitors to access the corresponding resources.
其步骤如下:The steps are as follows:
(1)二维码的生成,设定跳转系统的网址,那么根据码号生成规则(可以是自增型,保证码号唯一性)获得码号;(1) The generation of the two-dimensional code, set the URL of the jump system, then obtain the code number according to the code number generation rule (it can be self-incrementing, ensuring the uniqueness of the code number);
(2)将所述的码号接续到所述的跳转系统的网址后面,获得完整的指代地址;将所述的指代地址作为二维码内容进行二维码的生成,同时添加这个二维码对应的真实的URL地址到跳转系统数据库中,对应关系为一个码号对应一个URL地址;(2) The code number is connected to the URL of the jump system to obtain a complete reference address; the reference address is used as a two-dimensional code content to generate a two-dimensional code, and this is added at the same time The real URL address corresponding to the QR code is stored in the jump system database, and the corresponding relationship is that a code number corresponds to a URL address;
(3)客户端通过微信,快拍等等常规二维码扫描软件扫描这个二维码,得到指代地址,调用系统默认浏览器访问这个网址;(3) The client scans the QR code through regular QR code scanning software such as WeChat, Snapshots, etc., gets the referring address, and calls the system default browser to access the URL;
(4)服务器端接受到请求后,进行URL重写识别,使得URL重写规则可以获取到码号;(4) After receiving the request, the server side performs URL rewriting identification, so that the URL rewriting rule can obtain the code number;
(5)服务器页面根据获取到的请求参数中的码号,进行数据库的匹配,获取到真实的URL地址,引导到真实的网址上。(5) The server page performs database matching according to the code number in the obtained request parameter, obtains the real URL address, and leads to the real URL.
本发明采用二维码号(KEY)和真实的URL地址(VALUE)键值对的方式进行数据的存储,并通过二维码号和跳转系统网址拼接形成二维码对应的内容(即短地址),以便用来缩短网址,减少二维码体积,服务端利用URL重写功能进行还原真实的地址的获取方法。The present invention uses the two-dimensional code number (KEY) and the real URL address (VALUE) key-value pair to store data, and forms the content corresponding to the two-dimensional code (that is, short address), so as to shorten the URL and reduce the size of the QR code, and the server uses the URL rewriting function to restore the method of obtaining the real address.
附图说明Description of drawings
图1是本发明方法的系统结构图Fig. 1 is a system structure diagram of the inventive method
具体实施方式detailed description
二维码跳转处理方法,其步骤如下:Two-dimensional code jump processing method, its steps are as follows:
其步骤如下:The steps are as follows:
步骤1,二维码的生成,设定跳转系统的网址为http://r.abc.cn,那么根据码号生成规则(可以是自增型,保证码号唯一性)获得码号8790876;Step 1, the generation of the QR code, set the URL of the jump system to http://r.abc.cn , then obtain the code number 8790876 according to the code number generation rules (it can be self-incrementing to ensure the uniqueness of the code number) ;
步骤2,将所述的码号接续到所述的跳转系统的网址后面,获得完整的指代地址http://r.abc.cn/8790876;将所述的指代地址http://r.abc.cn/8790876作为二维码内容进行二维码的生成,同时添加这个二维码对应的真实的URL(如http://www.baidu.com)地址到跳转系统数据库中,对应关系为一个码号对应一个URL地址;Step 2, connect the code number to the URL of the jump system to obtain the complete referring address http://r.abc.cn/8790876 ; add the referring address to http://r.abc.cn/8790876 r.abc.cn/8790876 is used as the content of the QR code to generate the QR code, and at the same time add the real URL (such as http://www.baidu.com) address corresponding to the QR code to the jump system database, The corresponding relationship is that a code number corresponds to a URL address;
步骤3,客户端通过微信,快拍等等常规二维码扫描软件扫描这个二维码,得到指代地址http://r.abc.cn/8790876,调用系统默认浏览器访问这个网址;Step 3: The client scans the QR code through regular QR code scanning software such as WeChat, Snapshots, etc., and obtains the referring address http://r.abc.cn/8790876 , and calls the system default browser to access this URL;
步骤4,服务器端接受到请求后,进行URL重写识别,其中URL重写规则为RewriteRule^/([A-Za-z0-9\-_=?#&+]+)$/index.aspx?code=$1,使得URL重写规则可以获取到码号;Step 4: After receiving the request, the server performs URL rewriting recognition, where the URL rewriting rule is RewriteRule^/([A-Za-z0-9\-_=?#&+]+)$/index.aspx ?code=$1, so that the URL rewriting rule can get the code number;
步骤5,服务器页面根据获取到的请求参数中的码号为8790876,进行数据库的匹配,获取到真实的URL地址http://www.baidu.com,则进行Response.redirect引导到真实的网址上。Step 5, the server page performs database matching according to the code number in the obtained request parameter as 8790876, and obtains the real URL address http://www.baidu.com , then performs Response.redirect to guide to the real URL .
本说明书实施例所述的内容仅仅是对发明构思的实现形式的列举,本发明的保护范围的不应当被视为仅限于实施例所陈述的具体形式,本发明的保护范围也及于本领域技术人员根据本发明构思所能够想到的等同技术手段。The content described in the embodiments of this specification is only an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms stated in the embodiments. The protection scope of the present invention also extends to the field Equivalent technical means that can be conceived by the skilled person according to the concept of the present invention.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310355945.0A CN103428309B (en) | 2013-08-15 | 2013-08-15 | Quick Response Code redirect processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310355945.0A CN103428309B (en) | 2013-08-15 | 2013-08-15 | Quick Response Code redirect processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103428309A CN103428309A (en) | 2013-12-04 |
CN103428309B true CN103428309B (en) | 2016-04-06 |
Family
ID=49652472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310355945.0A Active CN103428309B (en) | 2013-08-15 | 2013-08-15 | Quick Response Code redirect processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103428309B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103632184A (en) * | 2013-12-13 | 2014-03-12 | 金蝶软件(中国)有限公司 | Two-dimension code generation method, two-dimension code use method, two-dimension code generator and user equipment |
CN105491086B (en) * | 2014-09-16 | 2019-01-29 | 北大方正集团有限公司 | Paper media's two dimensional code control method and paper media's server |
CN104318194B (en) * | 2014-09-28 | 2017-04-05 | 美的集团武汉制冷设备有限公司 | Based on the method for the page of the access household electrical appliances of Quick Response Code, server and mobile terminal |
CN104735546A (en) * | 2015-03-30 | 2015-06-24 | 深圳市米家互动网络有限公司 | KTV song demanding method and system, KTV song demanding terminal and KTV song management system |
CN105260695A (en) * | 2015-11-17 | 2016-01-20 | 杭州视赚网络技术有限公司 | Code scanning method for scanning dynamic three-dimensional codes on display screen |
CN106250498B (en) * | 2016-08-02 | 2020-03-31 | 北京京东尚科信息技术有限公司 | Method, equipment and system for realizing multi-system page switching |
CN106649478B (en) * | 2016-09-29 | 2020-12-15 | 浙江三网科技股份有限公司 | A multi-purpose two-dimensional code responsive jumping method |
CN106650502A (en) * | 2016-12-30 | 2017-05-10 | 哈尔滨蜜桃电子商务有限公司 | Marriage multimedia resource sharing system |
CN107688588A (en) * | 2017-02-16 | 2018-02-13 | 平安科技(深圳)有限公司 | The access method and device of a kind of Quick Response Code |
CN109800362B (en) * | 2018-12-11 | 2020-11-13 | 浙江口碑网络技术有限公司 | Identification code processing method and device, storage medium and computer equipment |
CN112825205A (en) * | 2019-11-19 | 2021-05-21 | 阿里健康信息技术有限公司 | Vending machine, and packaging method and device for vending machine |
CN110968460B (en) * | 2019-11-27 | 2020-10-27 | 上海众言网络科技有限公司 | Method and device for recovering website in system breakdown state |
CN111597474A (en) * | 2020-04-03 | 2020-08-28 | 多点(深圳)数字科技有限公司 | Two-dimensional code design and skip method compatible with multi-client environment |
CN114840782A (en) * | 2020-05-06 | 2022-08-02 | 支付宝(杭州)信息技术有限公司 | Page access method and device based on code scanning, electronic equipment and storage medium |
CN111639279B (en) * | 2020-05-27 | 2023-07-25 | 浙江口碑网络技术有限公司 | Graphic code generation method, target page loading method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626395A (en) * | 2008-07-10 | 2010-01-13 | 银河联动信息技术(北京)有限公司 | Method and system for guiding mobile terminal to access world wide web by two-dimensional code |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100550035C (en) * | 2007-12-06 | 2009-10-14 | 深圳华为通信技术有限公司 | The application process of two-dimension code and device |
-
2013
- 2013-08-15 CN CN201310355945.0A patent/CN103428309B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626395A (en) * | 2008-07-10 | 2010-01-13 | 银河联动信息技术(北京)有限公司 | Method and system for guiding mobile terminal to access world wide web by two-dimensional code |
Also Published As
Publication number | Publication date |
---|---|
CN103428309A (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103428309B (en) | Quick Response Code redirect processing method | |
CN102801574B (en) | The detection method of a kind of web page interlinkage, device and system | |
JP6594543B2 (en) | Order clustering method and apparatus and method and apparatus for countering malicious information | |
US10728366B2 (en) | Commerce oriented uniform resource locater (URL) shortener | |
US10120944B2 (en) | System and method for routing data and connecting users based on user interactions with a machine-readable code of content data | |
US10063620B2 (en) | Information sharing method and system | |
US12107931B2 (en) | System and method for identifying and tagging users | |
US9100434B2 (en) | Web page falsification detection apparatus and storage medium | |
US10754628B2 (en) | Extracting web API endpoint data from source code to identify potential security threats | |
CA2758428A1 (en) | Retrieving additional content based on data within a mobile code | |
CN104202345A (en) | Verification code generating method, device and system | |
WO2014179082A1 (en) | Systems and methods for instant e-coupon distribution | |
US20130282443A1 (en) | Seller url monitoring systems and methods | |
WO2018226244A1 (en) | System and method for identifying and tagging users | |
US9483660B2 (en) | Enterprise content management platform validator | |
US11258845B2 (en) | Browser management system, browser management method, browser management program, and client program | |
WO2019179011A1 (en) | Code scanning processing method and device, apparatus, and computer readable storage medium | |
CN103561066A (en) | Method and system for constructing network advertisements | |
CN106817270A (en) | Network traffics acquisition method, system and server | |
US12217310B1 (en) | Dynamic policy lifecycle management | |
CN105320851A (en) | Safety detection method and device for webpage | |
CN119545358A (en) | Website identification method, electronic device, and computer-readable medium | |
KR20180072181A (en) | Method for Providing an Advertisement of Contents | |
HK1173874B (en) | A method, device and system for detecting a web page link | |
HK1173874A (en) | A method, device and system for detecting a web page link |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: QR code jump processing method Granted publication date: 20160406 Pledgee: Bank of China Limited Hangzhou Binjiang Branch Pledgor: ZHEJIANG THIRDNET TECHNOLOGY Co.,Ltd. Registration number: Y2025330000075 |