TWI459219B - System and method for converting an address of a web page - Google Patents
System and method for converting an address of a web page Download PDFInfo
- Publication number
- TWI459219B TWI459219B TW098100176A TW98100176A TWI459219B TW I459219 B TWI459219 B TW I459219B TW 098100176 A TW098100176 A TW 098100176A TW 98100176 A TW98100176 A TW 98100176A TW I459219 B TWI459219 B TW I459219B
- Authority
- TW
- Taiwan
- Prior art keywords
- address
- webpage
- string
- local
- byte stream
- Prior art date
Links
Landscapes
- Information Transfer Between Computers (AREA)
Description
本發明涉及一種網頁轉換系統及方法。 The invention relates to a web page conversion system and method.
近年來,由於網路世界的蓬勃發展,網上流覽資訊已成為人們日常工作、學習和生活中不可或缺的一個重要部分,網路的信息量大,已成為全球“最大的圖書館”。 In recent years, due to the booming development of the online world, online information has become an indispensable part of people's daily work, study and life. The network has a large amount of information and has become the "biggest library" in the world.
目前,許多公司因為避免商業秘密洩漏和各種危險因素的干擾,例如:網路駭客的攻擊等,對員工訪問Internet的許可權進行了限制。但是,在平時的工作中,很多技術資訊必須從網上獲得,不能上網流覽所需資訊給他們的工作帶來很多不便。 At present, many companies restrict the access of employees to the Internet by avoiding the leakage of trade secrets and various risk factors, such as attacks by Internet hackers. However, in the usual work, a lot of technical information must be obtained from the Internet. It is not convenient to go online to view the required information for their work.
鑒於以上內容,有必要提供一種網頁轉換系統及方法,能在不影響用戶透過網路獲取必要資訊的情況下,有效阻止商業秘密透過網路洩漏且有效保證自身網路安全。 In view of the above, it is necessary to provide a webpage conversion system and method, which can effectively prevent commercial secrets from leaking through the network and effectively ensure the security of the network without affecting the user's access to the necessary information through the network.
一種網頁轉換系統,應用於應用伺服器中,該系統包括:設置模組,用於設置一本地位址對應於一網頁的有效位址,並將設置的資料保存到該應用伺服器中;替換模組,用於在用戶輸入該本地位址以請求訪問該有效位址對應的網頁時,將該本地位址轉換為對應的有效位址;訪問模組,用於訪問目標網站伺服器中所述有 效位址對應的網頁;獲取模組,用於獲取所訪問網頁內容的位元組流;處理模組,用於將所述位元組流中的圖片位元組流轉換為圖片,字串位元組流轉換為字串,將所述字串中的鏈結位址轉換為本地絕對位址;及轉換模組,用於將所述圖片及包括本地絕對位址的字串轉換成網頁。 A webpage conversion system is applied to an application server, the system includes: a setting module, configured to set a location address corresponding to a valid address of a webpage, and save the set data to the application server; a module, configured to convert the local address to a corresponding valid address when the user inputs the local address to request access to the webpage corresponding to the valid address; and the access module is configured to access the target website server Narrative a webpage corresponding to the effective address; a obtaining module, configured to obtain a byte stream of the accessed webpage content; and a processing module, configured to convert the image byte stream in the byte stream into a picture, a string Converting the bit stream to a string, converting the link address in the string to a local absolute address; and converting a module for converting the picture and the string including the local absolute address into a web page .
一種網頁轉換方法,該方法包括如下步驟:設置一本地位址對應於一網頁的有效位址,並將設置的資料保存到該應用伺服器中;在用戶輸入該本地位址以請求訪問該有效位址對應的網頁時,將該本地位址替換為對應的有效位址;訪問目標網站伺服器中所述有效位址對應的網頁;獲取所訪問網頁內容的位元組流;將所述位元組流中的圖片位元組流轉換為圖片,字串位元組流轉換為字串;將所述字串中的鏈結位址轉換為本地絕對位址;及將所述圖片及包括本地絕對位址的字串轉換成網頁。 A webpage conversion method, the method comprising the steps of: setting a status address corresponding to a valid address of a webpage, and saving the set data to the application server; and inputting the local address by the user to request access to the valid When the address corresponds to the webpage, the local address is replaced with a corresponding valid address; the webpage corresponding to the valid address in the target website server is accessed; the byte stream of the accessed webpage content is obtained; The picture byte stream in the tuple stream is converted into a picture, the string byte stream is converted into a string; the link address in the string is converted to a local absolute address; and the picture and the The string of the local absolute address is converted into a web page.
相較於習知技術,所述的一種網頁轉換系統及方法,利用伺服器訪問和下載所需網頁內容,使得用戶端電腦在沒有網路資源的條件下,透過訪問該伺服器即可流覽所需網頁內容,進而在不影響用戶透過網路獲取必要資訊的情況下,有效阻止了商業秘密透過網路洩漏且有效保證了自身網路安全。 Compared with the prior art, the webpage conversion system and method use the server to access and download the required webpage content, so that the client computer can access the server by accessing the server without network resources. The content of the required webpage can effectively prevent the leakage of trade secrets through the network and effectively ensure the security of the network without affecting the user's access to the necessary information through the network.
1‧‧‧應用伺服器 1‧‧‧Application Server
2‧‧‧客戶端計算機 2‧‧‧Client computer
3‧‧‧網際網路 3‧‧‧Internet
4‧‧‧目標網站服務器 4‧‧‧Target Website Server
10‧‧‧網頁轉換系統 10‧‧‧Web Conversion System
100‧‧‧設置模組 100‧‧‧Setup module
102‧‧‧替換模組 102‧‧‧Replacement module
104‧‧‧訪問模組 104‧‧‧Access Module
106‧‧‧獲取模組 106‧‧‧Getting module
108‧‧‧處理模組 108‧‧‧Processing module
110‧‧‧轉換模組 110‧‧‧Transition module
圖1係本發明網頁轉換系統的較佳實施例的硬體框架圖。 1 is a hardware frame diagram of a preferred embodiment of the web page conversion system of the present invention.
圖2係本發明網頁轉換系統的功能模組圖。 2 is a functional block diagram of a web page conversion system of the present invention.
圖3係本發明網頁轉換方法的較佳實施例的流程圖。 3 is a flow chart of a preferred embodiment of the web page conversion method of the present invention.
如圖1所示,係本發明網頁轉換系統的較佳實施例的硬體框架圖。該網頁轉換系統10運行於應用伺服器1中。該應用伺服器1用於將用戶輸入的本地位址轉換成有效位址,透過網際網路3訪問目標網站伺服器4中該有效位址的網頁並獲取該網頁內容的位元組流,對獲取的位元組流進行相對應處理,根據處理後的位元組流生成網頁以供用戶流覽。該應用伺服器1可以是個人電腦、網路服務器,還可以是任意其他適用的電腦。 1 is a hardware frame diagram of a preferred embodiment of the web page conversion system of the present invention. The web page conversion system 10 runs in the application server 1. The application server 1 is configured to convert the local address input by the user into a valid address, access the webpage of the effective address in the target website server 4 through the Internet 3, and obtain a byte stream of the content of the webpage, The obtained byte stream is correspondingly processed, and a webpage is generated according to the processed byte stream for the user to browse. The application server 1 can be a personal computer, a web server, or any other suitable computer.
該應用伺服器1與至少一用戶端電腦2相連,便於用戶輸入請求訪問網頁的本地位址至應用伺服器1等。 The application server 1 is connected to at least one client computer 2, so that the user can input the local address requesting access to the webpage to the application server 1, and the like.
如圖2所示,係本發明網頁轉換系統的的功能模組圖。該網頁轉換系統10包括設置模組100、替換模組102、訪問模組104、獲取模組106、處理模組108及轉換模組110。 As shown in FIG. 2, it is a functional module diagram of the webpage conversion system of the present invention. The webpage conversion system 10 includes a setup module 100, a replacement module 102, an access module 104, an acquisition module 106, a processing module 108, and a conversion module 110.
所述設置模組100用於設置一本地位址對應於一網頁的有效位址,並將設置的資料保存到應用伺服器1中。例如:網頁的有效位址為http://xxx.sina.com,所述設置模組100設置該網頁的本地位址為http://localhost/hrs/sample。 The setting module 100 is configured to set a location address corresponding to a valid address of a webpage, and save the set data to the application server 1. For example, the effective address of the webpage is http://xxx.sina.com, and the setting module 100 sets the local address of the webpage to http://localhost/hrs/sample.
所述替換模組102用於在用戶輸入該本地位址以請求訪問該有效位址對應的網頁時,將該本地位址替換為對應的有效位址。該本地位址是指該有效位址對應的網頁在本地應用伺服器1中的虛擬位址,該有效位址是指該有效位址對應的網頁在目標網站伺服器4中的實際位址。例如:若用戶輸入請求訪問網頁的本地位址為http://localhost/hrs/sample,該本地位址在應用伺服器1中對應的有效位址為http://xxx.sina.com,則替換模組102將該本地位址替換為有效位址http://xxx.sina.com。 The replacement module 102 is configured to replace the local address with a corresponding valid address when the user inputs the local address to request access to the webpage corresponding to the valid address. The current address refers to a virtual address in the local application server 1 of the webpage corresponding to the valid address, and the effective address refers to the actual address of the webpage corresponding to the valid address in the target website server 4. For example, if the user inputs the local address of the requesting webpage to be http://localhost/hrs/sample, and the corresponding effective address of the local address in the application server 1 is http://xxx.sina.com, The replacement module 102 replaces the home address with the valid address http://xxx.sina.com.
所述訪問模組104用於透過網際網路3訪問目標網站伺服器4中該有效位址對應的網頁。 The access module 104 is configured to access the webpage corresponding to the valid address in the target website server 4 through the Internet 3.
所述獲取模組106用於獲取所訪問網頁內容的位元組流。所述網頁內容的位元組流是指將網頁內容按照位元組處理後的資料流程,即二進位資料流。所述網頁內容的位元組流包括圖片位元組流和字串位元組流,所述圖片位元組流用於顯示網頁中的圖片,所述字串位元組流用於顯示網頁中的文字。 The obtaining module 106 is configured to obtain a byte stream of the accessed webpage content. The byte stream of the webpage content refers to a data flow processed by the content of the webpage according to the byte group, that is, a binary data stream. The byte stream of the webpage content includes a picture byte stream and a string byte stream, the picture byte stream is used to display a picture in a webpage, and the string byte stream is used to display a webpage Text.
所述處理模組108用於將所述位元組流中的圖片位元組流轉換為圖片,字串位元組流轉換為字串。 The processing module 108 is configured to convert a picture byte stream in the byte stream into a picture, and the string byte stream is converted into a string.
所述處理模組108還用於將所述字串中的鏈結位址轉換為本地絕對位址。所述字串中的鏈結位址包括絕對位址和相對位址。所述絕對位址是指有完整路徑的位址(例如:http://xxx.sina.com/mil?id=123456),相對位址只有伺服器目錄級別及檔案名稱(例如:/mil?id=123456),而流覽器只認絕對位址,所以必須把相對位址的資訊補全,將相對位址轉換成絕對位址才可以正常顯示。若字串中的鏈結位址為相對位址,則處理模組108將該相對位址替換為絕對位址,再利用正則運算式將該絕對位址替換為本地絕對位址;若字串中的鏈結位址為絕對位址,則直接利用正則運算式將該絕對位址替換為本地絕對位址。例如:若請求訪問網頁的本地位址為http://localhost/hrs/sample,有效位址為http://xxx.sina.com,從該網頁獲得的字串位元組流中有相對位址/mil?id=123456,則處理模組108將該相對位址替換為絕對位址http://xxx.sina.com/mil?id=123456,再利用正則運算式 將將該絕對位址替換為本地絕對位址http://localhost/hrs/sample?q=http://xxx.sina.com/mil?id=123456。 The processing module 108 is further configured to convert the link address in the string to a local absolute address. The link address in the string includes an absolute address and a relative address. The absolute address refers to the address with the full path (for example: http://xxx.sina.com/mil?id=123456), the relative address is only the server directory level and the file name (for example: /mil? Id=123456), and the browser only recognizes the absolute address, so the information of the relative address must be complemented, and the relative address can be converted into an absolute address to display normally. If the link address in the string is a relative address, the processing module 108 replaces the relative address with an absolute address, and then replaces the absolute address with a local absolute address by using a regular expression; The link address in the address is an absolute address, and the absolute address is directly replaced with a local absolute address by using a regular expression. For example, if the local address of the requested webpage is http://localhost/hrs/sample and the valid address is http://xxx.sina.com, the string of bytes obtained from the webpage has a relative position. Address /mil? Id=123456, the processing module 108 replaces the relative address with the absolute address http://xxx.sina.com/mil? Id=123456, then use the regular expression Will this absolute address be replaced with the local absolute address http://localhost/hrs/sample? q=http://xxx.sina.com/mil? Id=123456.
所述轉換模組110用於將所述圖片及包括本地絕對位址的字串轉換成網頁。 The conversion module 110 is configured to convert the picture and a string including a local absolute address into a webpage.
如圖3所示,係本發明一種網頁轉換方法的較佳實施例的流程圖。首先,步驟S10,設置模組100設置一本地位址對應於一網頁的有效位址,並將設置的資料保存到應用伺服器1中。例如:網頁的有效位址為http://xxx.sina.com,所述設置模組100設置該網頁的本地位址為http://localhost/hrs/sample。 3 is a flow chart of a preferred embodiment of a web page conversion method according to the present invention. First, in step S10, the setting module 100 sets a location address corresponding to a valid address of a webpage, and saves the set data to the application server 1. For example, the effective address of the webpage is http://xxx.sina.com, and the setting module 100 sets the local address of the webpage to http://localhost/hrs/sample.
步驟S12,替換模組102在用戶輸入該本地位址以請求訪問該有效位址對應的網頁時,將該本地位址替換為對應的有效位址。例如:若用戶輸入請求訪問網頁的本地位址為http://localhost/hrs/sample,該本地位址在應用伺服器1中對應的有效位址為http://xxx.sina.com,則替換模組102將該本地位址替換為有效位址http://xxx.sina.com。 In step S12, when the user inputs the local address to request access to the webpage corresponding to the valid address, the replacement module 102 replaces the local address with the corresponding valid address. For example, if the user inputs the local address of the requesting webpage to be http://localhost/hrs/sample, and the corresponding effective address of the local address in the application server 1 is http://xxx.sina.com, The replacement module 102 replaces the home address with the valid address http://xxx.sina.com.
步驟S14,訪問模組104透過網際網路3訪問目標網站伺服器4中該有效位址對應的網頁。 In step S14, the access module 104 accesses the webpage corresponding to the valid address in the target website server 4 through the Internet 3.
步驟S16,獲取模組106獲取所訪問網頁內容的位元組流。所述網頁內容的位元組流是指將網頁內容按照位元組處理後的資料流程,即二進位資料流。所述網頁內容的位元組流包括圖片位元組流和字串位元組流,所述圖片位元組流用於顯示網頁中的圖片,所述字串位元組流用於顯示網頁中的文字。 In step S16, the obtaining module 106 acquires a byte stream of the accessed webpage content. The byte stream of the webpage content refers to a data flow processed by the content of the webpage according to the byte group, that is, a binary data stream. The byte stream of the webpage content includes a picture byte stream and a string byte stream, the picture byte stream is used to display a picture in a webpage, and the string byte stream is used to display a webpage Text.
步驟S18,處理模組108將所述位元組流中的圖片位元組流轉換為圖片,字串位元組流轉換為字串。 In step S18, the processing module 108 converts the picture byte stream in the byte stream into a picture, and the string byte stream is converted into a string.
步驟S20,處理模組108將所述字串中的鏈結位址轉換為本地絕對位址。所述字串中的鏈結位址包括絕對位址和相對位址。若字串中的鏈結位址為相對位址,則處理模組108將該相對位址替換為絕對位址,再利用正則運算式將該絕對位址替換為本地絕對位址;若字串中的鏈結位址為絕對位址,則直接利用正則運算式將該絕對位址替換為本地絕對位址。例如:若請求訪問網頁的本地位址為http://localhost/hrs/sample,有效位址為http://xxx.sina.com,從該網頁獲得的字串位元組流中有相對位址/mil?id=123456,則處理模組108將該相對位址替換為絕對位址http://xxx.sina.com/mil?id=123456,再利用正則運算式將將該絕對位址替換為本地絕對位址http://localhost/hrs/sample?q=http://xxx.sina.com/mil?id=123456。 In step S20, the processing module 108 converts the link address in the string into a local absolute address. The link address in the string includes an absolute address and a relative address. If the link address in the string is a relative address, the processing module 108 replaces the relative address with an absolute address, and then replaces the absolute address with a local absolute address by using a regular expression; The link address in the address is an absolute address, and the absolute address is directly replaced with a local absolute address by using a regular expression. For example, if the local address of the requested webpage is http://localhost/hrs/sample and the valid address is http://xxx.sina.com, the string of bytes obtained from the webpage has a relative position. Address /mil? Id=123456, the processing module 108 replaces the relative address with the absolute address http://xxx.sina.com/mil? Id=123456, and then use the regular expression to replace the absolute address with the local absolute address http://localhost/hrs/sample? q=http://xxx.sina.com/mil? Id=123456.
步驟S22,轉換模組110將所述圖片及包括本地絕對位址的字串轉換成網頁。 In step S22, the conversion module 110 converts the picture and the string including the local absolute address into a web page.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.
10‧‧‧網頁轉換系統 10‧‧‧Web Conversion System
100‧‧‧設置模組 100‧‧‧Setup module
102‧‧‧替換模組 102‧‧‧Replacement module
104‧‧‧訪問模組 104‧‧‧Access Module
106‧‧‧獲取模組 106‧‧‧Getting module
108‧‧‧處理模組 108‧‧‧Processing module
110‧‧‧轉換模組 110‧‧‧Transition module
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW098100176A TWI459219B (en) | 2009-01-06 | 2009-01-06 | System and method for converting an address of a web page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW098100176A TWI459219B (en) | 2009-01-06 | 2009-01-06 | System and method for converting an address of a web page |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201027368A TW201027368A (en) | 2010-07-16 |
TWI459219B true TWI459219B (en) | 2014-11-01 |
Family
ID=44853173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW098100176A TWI459219B (en) | 2009-01-06 | 2009-01-06 | System and method for converting an address of a web page |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI459219B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW544601B (en) * | 2001-11-20 | 2003-08-01 | Ind Tech Res Inst | Method and structure for forming web server cluster by conversion and dispatching of web page documents |
US20040095400A1 (en) * | 2002-11-19 | 2004-05-20 | Anderson Andrew T. | Reconfiguration of content for display on devices of different types |
US7406498B2 (en) * | 2000-04-12 | 2008-07-29 | Webcollage Inc. | Dynamic integration of web sites |
TW200836075A (en) * | 2007-02-16 | 2008-09-01 | Esobi Inc | Method of converting hypertext markup language web page into pure text and system thereof |
-
2009
- 2009-01-06 TW TW098100176A patent/TWI459219B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7406498B2 (en) * | 2000-04-12 | 2008-07-29 | Webcollage Inc. | Dynamic integration of web sites |
TW544601B (en) * | 2001-11-20 | 2003-08-01 | Ind Tech Res Inst | Method and structure for forming web server cluster by conversion and dispatching of web page documents |
US20040095400A1 (en) * | 2002-11-19 | 2004-05-20 | Anderson Andrew T. | Reconfiguration of content for display on devices of different types |
TW200836075A (en) * | 2007-02-16 | 2008-09-01 | Esobi Inc | Method of converting hypertext markup language web page into pure text and system thereof |
Also Published As
Publication number | Publication date |
---|---|
TW201027368A (en) | 2010-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020253389A1 (en) | Page translation method and apparatus, medium, and electronic device | |
TWI526825B (en) | Web page link detection method, device and system | |
JP4884243B2 (en) | Method and apparatus for caching private data for a configurable period | |
US8250466B2 (en) | Computer and method for converting a web page | |
CN107103233B (en) | Techniques for dynamic domain-based isolation | |
US9058490B1 (en) | Systems and methods for providing a secure uniform resource locator (URL) shortening service | |
US20100071052A1 (en) | Reverse proxy architecture | |
TW201407374A (en) | An integrated storage platform system and method thereof | |
WO2013143403A1 (en) | Method and system for accessing website | |
JP2002014961A (en) | Translation system and device | |
US8484373B2 (en) | System and method for redirecting a request for a non-canonical web page | |
WO2012034518A1 (en) | Method and system for providing message including universal resource locator | |
US11436524B2 (en) | Hosting machine learning models | |
US10257182B2 (en) | Login proxy for third-party applications | |
US10951682B2 (en) | Systems and methods for accessing multiple resources via one identifier | |
CA2389369A1 (en) | Framework for integrating existing and new information technology applications and systems | |
JP5146088B2 (en) | Web information relay method and apparatus | |
TWI459219B (en) | System and method for converting an address of a web page | |
CN108540532A (en) | A kind of network file access method and terminal | |
US20230224302A1 (en) | Techniques for providing hypertext transfer protocol through a secure environment | |
JP2004110080A (en) | Computer network connection method on internet by real name, and computer network system | |
US7340521B1 (en) | Method for routing a request over a network to a content source that can most advantageous serve the request | |
US8838741B1 (en) | Pre-emptive URL filtering technique | |
US11824918B1 (en) | HTTP POST response caching in a content distribution network via POST request translation | |
US11552971B1 (en) | Detection of fraudulent use of content delivery network served byte streams |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |