201027368 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種網頁轉換系統及方法。 [0002] 【先前技術] 近年來,由於網路世界的蓬勃發展,網上流覽資訊已成 為人們日常工作、學習和生活中不可或缺的一個重要部 分’網路的信息量大,已成為全球“最大的圖書館”。 [0003] 目前,許多公司因為避免商業秘密洩漏和各種危險因素 m 的干擾,例如:網路駭客的攻擊等,對員工訪問 Internet的許可權進行了限制。但是,在平時的工作中 ’很多技術資m必須從網上獲得,不能上網年覽所需資、 訊給他們的工作帶來很多不便。 .. [0004] 【發明内容】 鑒於以上内容,有必要提供一種網頁轉換系統及方法, 能在不影響用戶透過網路罐取#:要章訊故情況下,有效 阻止商業秘密透過網路洩漏暴有故保=證自身網路安全。 [0005] 一種網頁轉換系統,應用於應用'祠服器中,該系統包括 :設置模組,用於設置一本地位址對應於一網頁的有效 位址,並將設置的資料保存到該應用伺服器中;替換模 組,用於在用戶輸入該本地位址以請求訪問該有效位址 對應的網頁時’將該本地位址轉換為對應的有效位址; 訪問模組,用於訪問目標網站伺服器中所述有效位址對 應的網頁;獲取模組,用於獲取所訪問網頁内容的位元 組流;處理模組,用於將所述位元組流中的圖片位元組 流轉換為圖片,字串位元組流轉換為字串,將所述字串 098100176 表單編號A0101 第4頁/共15頁 0982000305-0 201027368 [0006] e [0007] [0008] 中的鏈結位址轉換為本地絕對位址;及轉換模組’用於 將所述圖片及包括本地絕對位址的字串轉換成網頁。 一種網頁轉換方法,該方法包括如下步驟:設置一本地 位址對應於一網頁的有效位址,並將設置的資料保存到 該應用伺服器中;在用戶輸入該本地位址以請求訪問該 有效位址對應的網頁時’將該本地位址替換為對應的有 效位址;訪問目標網站伺服器中所述有效位址對應的網 頁;獲取所訪問網頁内容的位元組流;將所述位元組流 中的圖片位元組流轉換為圖片,字串位元組流轉換為字 串;將所述字串中的鏈結位址轉換為本地絕對位址;及 將所述圖片及包括本地絕對位址的字串.轉換成網頁。 相較於習知技術,所述的一種網頁轉換系統及方法,利 用伺服器訪問和下載所需網頁内容’使得用戶端電腦在 沒有網路資源的條件下,透過訪問該伺服器即可流覽所 需網頁内容,進而在不影響暴戶:举過網路獲取必要資訊201027368 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to a web page conversion system and method. [0002] [Prior Art] In recent years, due to the booming development of the online world, online browsing information has become an indispensable part of people's daily work, study and life. 'The amount of information on the Internet is large and has become a global "The biggest library." [0003] At present, many companies restrict the access of employees to the Internet by avoiding the leakage of trade secrets and the interference of various risk factors, such as attacks by Internet hackers. However, in the usual work, many technical resources must be obtained online, and it is not convenient to access the information required for the annual meeting. [0004] [Invention] 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 without affecting the user's access to the network through the network. There is a violent insurance = proof of its own network security. [0005] A webpage conversion system is applied to an application server, the system comprising: 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 In the server, the replacement module is configured to: when the user inputs the local address to request access to the webpage corresponding to the valid address, the target address is converted into a corresponding valid address; and the access module is used to access the target. a webpage corresponding to the valid address in the web server; an obtaining module, configured to obtain a byte stream of the accessed webpage content; and a processing module, configured to stream the image byte in the byte stream Converted to a picture, the string byte stream is converted to a string, the string 098100176 Form Number A0101 Page 4 / Total 15 Page 0982000305-0 201027368 [0006] e [0007] [0008] The address is converted to a local absolute address; and the conversion module 'is used to convert 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 location address is replaced with the corresponding valid address; the webpage corresponding to the valid address in the target website server is accessed; the byte stream of the content of the accessed webpage 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 A string of local absolute addresses. Converted to 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, so as not to affect the violent: get the necessary information on the Internet
Γ:, I 的情況下,有效阻止了商举秘#养過網路洩漏且有效保 證了自身網路安全。 > 【實施方式】 如圖1所示,係本發明網頁轉換系統的較佳實碑例的硬體 框架圖。該網頁轉換系統10運行於應用伺服器1中。該應 用伺服器1用於將用戶輸入的本地位址轉換成有效位址, 透過網際網路3訪問目標網站祠服器4中該有效位址的網 頁並獲取該網頁内容的位元組流’對獲取的位元組流進 行相對應處理’根據處理後的位元組流生成網頁以供用 戶流覽。該應用伺服器1可以是個人電腦、網路服務器, 098100176 表單編號A0101 第5頁/共15頁 0982000305-0 201027368 還玎以是任意其他適用的電腦。 [0009] 該應用祠服器1與至少一用戶端電腦2相連’便於用戶輸 入請求訪問網頁的本地位址至應用伺服器1等。 [0010] 如圖2所示,係本發明網頁轉換系統的的功能模組圖。該 網頁轉換系統10包括設置模組100、替換模組102、訪問 模組104、獲取模組106、處理模組108及轉換模組11〇。 [0011] 所述設置模組1〇〇用於設置一本地位址對應於一網頁的有 妹位址,並將設置的資料保存到應甩伺服器1中。例如: ® 網頁的有效位址為http: //xxx. sina. com ’所述設置模 組100設置該網頁的本地位址為 http://l〇calhost/hrs/sample = [0012] 所述替換模組102用於在用戶輸入該本地位址以請求訪問 該有效位址對應的網頁時,將該本地位址替換為對應的 有效位址。該本地位址是,該.有竽位址對應的網頁在本 2 ~ 7 -, , i 地應用伺服器1中的虛擬位立址是指該有效位 fiOpertv 1 址對應的網頁在目標網站#服,^¥的奮際位址。例如: ❹ -1 * ; 若用戶輸入請求訪問網頁的本地位址為 http://l〇calhost/hrs/sample,該本地位址在應用 伺服器1中對應的有效位址為http://χχχ· sina. com, 則替換模組102將該本地位址替換為有效位址 http://xxx.sina. com 0 [0013] 所述訪問模組104用於透過網際網路3訪問目標網站伺服 器4中該有效位址對應的網頁。 所述獲取模組106用於獲取所訪問網頁内容的位元組流。 098100176 表單編號A0101 第6頁/共15頁 0982000305-0 [0014] 201027368 [0015] [0016] ❹Γ: In the case of I, it effectively prevented the business secrets from raising the network and effectively protecting the security of the network. [Embodiment] As shown in Fig. 1, a hardware frame diagram of a preferred embodiment of the web page conversion system of the present invention is shown. 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. Corresponding processing of the obtained byte stream 'Generate a web page according to the processed byte stream for the user to browse. The application server 1 can be a personal computer or a web server, 098100176 Form No. A0101 Page 5 of 15 0982000305-0 201027368 It is also any other suitable computer. The application server 1 is connected to at least one client computer 2 to facilitate the user to input the local address requesting access to the web page to the application server 1 or the like. [0010] 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 11A. [0011] The setting module 1 is configured to set a location address corresponding to a web address of a webpage, and save the set data to the server 1 . For example: ® The effective address of the web page is http: //xxx. sina. com 'The setting module 100 sets the local address of the web page to http://l〇calhost/hrs/sample = [0012] The replacement module 102 is configured to replace the local address with the corresponding valid address when the user inputs the local address to request access to the webpage corresponding to the valid address. The status address is: the web address corresponding to the address corresponding to the address in the application 2~7-, i, the virtual bit address in the server 1 refers to the webpage corresponding to the valid bit fiOpertv1 at the target website# Service, ^¥'s address. For example: ❹ -1 * ; If the user enters the address of the request to access the web page as http://l〇calhost/hrs/sample, the corresponding effective address of the local address in the application server 1 is http:// Χχχ sina.com, the replacement module 102 replaces the local address with a valid address http://xxx.sina.com 0 [0013] The access module 104 is used to access the target website through the Internet 3. The web page corresponding to the valid address in the server 4. The obtaining module 106 is configured to obtain a byte stream of the accessed webpage content. 098100176 Form No. A0101 Page 6 of 15 0982000305-0 [0014] 201027368 [0015] 00
所述網頁内容的位元組流是指將網頁内容按照位元組處 理後的資料流程,即二進位資料流。所述網頁内容的位 元組流包括圖片位元組流和字串位元組流’所述圖片位 元組流用於顯示網頁中的_片,所述字串位元組流用於 顯示網頁中的文字。 所述處理模組108用於將所述位元組流中的圖片位元組流 轉換為圖片,字串位元組流轉換為字串° 所述處理模組108還用於將所述字串中的鏈結位址轉換為 本地絕對位址。所述字串中的鍵結位址包括絕對位址和 相對位址。所述絕對位址是指有完整路徑的位址(例如 :http://xxx. sina. com/a*i 1?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,再利用正則 運算式將將該絕對位址替換為本地絕對位址 098100176 表單編號A0101 第7頁/共15頁 0982000305-0 201027368 http://localhost/hrs/sample?q=http://xxx. sin a.com/mil?id=123456 ° [0017] [0018] ❿ [0019]The byte stream of the webpage content refers to a data flow after the webpage content is processed 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 slice in a webpage, and the string byte stream is used to display a webpage. Text. 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. The processing module 108 is further configured to use the word The link address in the string is converted to a local absolute address. The keying 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/a*i 1?id= 123456 ), the relative address is only the server directory level and the name of the file (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 皞# in the string is the phase address, the processing module 108 replaces the relative address with the absolute dance parameter, and then uses the regular operation, the - - Γ algorithm replaces the absolute address with the address. Each absolute address; if the link address in the string is an absolute address, the absolute address is directly replaced with the local absolute address by 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 bit. If the 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 uses the regular expression to the absolute address. Replace with local absolute address 098100176 Form number A0101 Page 7 of 15 0982000305-0 201027368 http://localhost/hrs/sample?q=http://xxx. sin a.com/mil?id=123456 ° [0018] [0019]
[0020] [0021] 所述轉換模組110用於將所述圖片及包括本地絕對位址的 字串轉換成網頁。 如圖3所示,係本發明一種網頁轉換方法的較佳實施例的 流程圖。首先,步驟S10,設置模組100設置一本地位址 對應於一網頁的有效位址,並將設置的資料保存到應用 伺服器1中。例如:網頁的有效位址為 http: / /χχχ. sina. com,所述設置模组100設置該網頁 的本地位址為http: / /1 ocaIhost/hrs/sample。 步驟S12,替換模組102在用戶輸入該本地位址以請求訪 問該有效位址對應的網頁時,將該本地位址替換為對應 的有效位址。例如:若用戶輸入請求訪問網頁的本地位 址為http://lo.calhost/hrs/sample,該本地位址在 i I ? ; \ 應用伺服器1中對應的有效位1址Ahttp://.xxx.. sina.:com,物#Λ被將該本地位址 替換為有效位址111^?://又放.41^〇〇111。 步驟S14,訪問模組104透過網際網路3訪問目標網站伺服 器4中該有效位址對應的網頁。 步驟S16,獲取模組106獲取所訪問網頁内容的位疋組流 。所述網頁内容的位元組流是指將網P容按照位兀組 處理後的資料流程,即二進位資料流。所述網頁内合的 位元組流包括圖片位it組流和字串位元·組流’所述圖片 位元組流用於顯示網頁中的圖片,所述字串位元組抓用 0982000305-0 098100176 表單編號A0101 201027368 [0022] 於顯示網頁中的文字。 步驟S18,處理模組108將所述位元組流中的圖片位元組 流轉換為圖片,字串位元組流轉換為字串。 [0023] 步驟S20,處理模組108將所述字串中的鏈結位址轉換為 本地絕對位址。所述字串中的鍵結位址包括絕對位址和 相對位址。若字串中的鏈結位址為相對位址,則處理模 組108將該相對位址替換為絕對位址,再利用正則運算式 將該絕對位址替換為本地絕對位址,;若字串中的鏈結位 址為絕對位址,則直接利用正則運算式將該絕對位址替 換為本地絕對位址》例如:若請求訪問網頁的本地位址 為http://l〇calhost/hrs/sample,有效位址為 http://XXX. Sina. com,從該網頁獲得的字串位元組流 中有相對位址/mil?id=123456,則處理模組1〇8將該相 對位址替換為絕對位址 http://xxx.siaa· 345J,再利用正則 ❹ 運算式將將該絕對位址替換對位址http: / / l〇calhost/hrs/sampliafq=http: //xxx. sina.com/mil?id=123456 。 [0024] [0025] 步驟S22 ’轉換模組11()將所述圖片及包括本地絕對位址 的字串轉換成網頁。 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟,以上所述者僅為本發明之較佳實施例,本發 明之範圍並不以上述實施例為限’舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 098100176 表單編號A0101 第9頁/共15頁 0982000305-0 201027368 蓋於以下申請專利範圍内。 【圖式簡單說明】 [0026] 圖1係本發明網頁轉換系統的較佳實施例的硬體框架圖。 [0027] 圖2係本發明網頁轉換系統的功能模組圖。 [0028] 圖3係本發明網頁轉換方法的較佳實施例的流程圖。 【主要元件符號說明】 [0029] 應用伺服器1[0021] The conversion module 110 is configured to convert the picture and a string including a local absolute address into a webpage. 3 is a flow chart of a preferred embodiment of a web page conversion method of 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: / /χχχ. sina.com, and the setting module 100 sets the local address of the webpage to http: / /1 ocaIhost/hrs/sample. 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 enters the address of the request to access the webpage as http://lo.calhost/hrs/sample, the status address is in i I ? ; \ application server 1 corresponding valid bit 1 Ahttp:// .xxx.. sina.:com, object #Λ is replaced by the status address as a valid address 111^?: and put .41^〇〇111. In step S14, the access module 104 accesses the webpage corresponding to the valid address in the target website server 4 via the Internet 3. In step S16, the obtaining module 106 obtains the bit stream of the content of the accessed webpage. The bit stream of the webpage content refers to a data flow processed by the network P according to the bit group, that is, a binary data stream. The byte stream in the webpage includes a picture bit it group stream and a string bit group stream. The picture bit tuple stream is used to display a picture in a webpage, and the string bit group is captured by 0982000305- 0 098100176 Form number A0101 201027368 [0022] Display text in web pages. 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. [0023] Step S20, the processing module 108 converts the link address in the string into a local absolute address. The keying 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 the local absolute address by using a regular expression; If the link address in the string is an absolute address, the absolute address is directly replaced with the local absolute address by using the regular expression. For example, if the address of the requested web page is http://l〇calhost/hrs /sample, the valid address is http://XXX. Sina. com, the relative byte address /mil?id=123456 in the string byte stream obtained from this webpage, the processing module 1〇8 will be the relative Replace the address with the absolute address http://xxx.siaa· 345J, and then use the regular ❹ expression to replace the absolute address with the address http: / / l〇calhost/hrs/sampliafq=http: //xxx Sina.com/mil?id=123456. [0025] Step S22' conversion module 11() 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. However, the above description 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 Ying Han 098100176 Form No. A0101 Page 9 of 15 0982000305-0 201027368 Covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0026] FIG. 1 is a hardware frame diagram of a preferred embodiment of a web page conversion system of the present invention. 2 is a functional block diagram of a webpage conversion system of the present invention. 3 is a flow chart of a preferred embodiment of the web page conversion method of the present invention. [Main component symbol description] [0029] Application server 1
[0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039][0039] [0039] [0039] [0039] [0039]
客戶端計算機2 網際網路3 目標網站服務器4 網頁轉換系統10 設置模組100 替換模組102 訪問模組1Θ4 獲取模組106 處理模組108 轉換模組110 098100176 表單編號A0101 第10頁/共15頁 0982000305-0Client Computer 2 Internet 3 Target Website Server 4 Web Page Conversion System 10 Setup Module 100 Replacement Module 102 Access Module 1Θ4 Acquisition Module 106 Processing Module 108 Conversion Module 110 098100176 Form Number A0101 Page 10 of 15 Page 0982000305-0