Method and system for modifying webpage contents on router
The invention provides a method and a system for modifying webpage contents on a router. The method comprises the steps that the router starts an agent program after receiving requests from a terminal browser, and gives all the webpage requests from the terminal browser to the agent program; the age...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a method and a system for modifying webpage contents on a router. The method comprises the steps that the router starts an agent program after receiving requests from a terminal browser, and gives all the webpage requests from the terminal browser to the agent program; the agent program forwards the requests from the terminal browser to a remote server and receives a response result from the remote server; and when the response result, received by the agent program, of the remote server is HTML contents, the agent program adds a JavaScript into the HTML contents and returns modified HTML contents to the terminal browser. According to the method and the system, the modification of the webpage contents browsed by the terminal browser is realized and the convenience is provided for advertisement filtering, harmful contents filtering, security control and the like.
本发明提供了种在路由器上修改网页内容的方法及其实现系统,其中所述方法包括路由器接收到来自终端浏览器的请求后,启动代理程序,将所有跟来自终端浏览器的网页请求都交给所述代理程序;代理程序向远程服务器转发来自终端浏览器的请求,并接收来自远程服务器的响应结果;当 |
---|