Methods and systems for rewriting scripts to redirect web requests
First Claim
1. A method, comprising:
- at a proxy server having one or more processors and memory storing instructions for execution by the one or more processors, wherein the proxy server is coupled to one or more web servers and a user device;
receiving, from the user device, a first request for a web page provided by a first web server;
receiving, in response to the first request, the web page from the first web server, wherein the web page includes a script;
scanning the script to identify one or more URLs that specify requests directed to servers other than the proxy server;
for each of the one or more URLs, rewriting the script to redirect requests for the respective URL through the proxy server; and
sending the web page, including the rewritten script, to the user device.
1 Assignment
0 Petitions
Accused Products
Abstract
A method is performed at a proxy server having one or more processors and memory. The memory stores instructions configured for execution by the one or more processors. The proxy server is coupled to one or more web servers and a user device. The proxy server receives, from the user device, a request for a web page provided by a first web server. The proxy server receives the web page, in response to the request, from the first web server. The web page includes a script. The proxy server scans the script to identify one or more URLs that specify requests directed to servers other than the proxy server. For each of the one or more URLs, the proxy server rewrites the script to redirect requests for the respective URL through the proxy server. The proxy server then sends the web page, including the rewritten script, to the user device.
-
Citations
20 Claims
-
1. A method, comprising:
at a proxy server having one or more processors and memory storing instructions for execution by the one or more processors, wherein the proxy server is coupled to one or more web servers and a user device; receiving, from the user device, a first request for a web page provided by a first web server; receiving, in response to the first request, the web page from the first web server, wherein the web page includes a script; scanning the script to identify one or more URLs that specify requests directed to servers other than the proxy server; for each of the one or more URLs, rewriting the script to redirect requests for the respective URL through the proxy server; and sending the web page, including the rewritten script, to the user device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
13. A proxy server, comprising:
-
one or more processors; memory; and one or more programs stored in the memory and configured for execution by the one or more processors, the one or more programs comprising instructions for; receiving, from a user device, a first request for a web page provided by a first web server; receiving, in response to the first request, the web page from the first web server, wherein the web page includes a script; scanning the script to identify one or more URLs that specify requests directed to servers other than the proxy server; for each of the one or more URLs, rewriting the script to redirect requests for the respective URL through the proxy server; and sending the web page, including the rewritten script, to the user device. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A non-transitory computer-readable storage medium storing one or more programs configured for execution by one or more processors of an electronic device, the one or more programs including instructions for:
-
receiving, from a user device, a first request for a web page provided by a first web server; receiving, in response to the first request, the web page from the first web server, wherein the web page includes a script; scanning the script to identify one or more URLs that specify requests directed to servers other than the proxy server; for each of the one or more URLs, rewriting the script to redirect requests for the respective URL through the proxy server; and sending the web page, including the rewritten script, to the user device.
-
Specification