主权项 |
1. A method, performed at a proxy server, for changing a link dynamically generated by a link producing script included in requested content provided to the proxy server by a content server, with the requested content including HyperText Markup Language (HTML) markup, the method comprising:
receiving, at the proxy server, a proxied content request from a client computer, with the client computer utilizing a proxied content request that requests content from a content server via the proxy server, with the requested content identified by a content uniform resource locator (URL), where the proxied content request is written relative to the proxy server and includes a proxy URL that identifies the proxy server and content name information that identifies the content URL; mapping, by the proxy server, the content name information included in the proxied content request to the content URL; retrieving, by the proxy server, the requested content by utilizing the content URL; scanning, by the proxy server, retrieved requested content to detect the presence of a link producing script including a document write script statement that inserts a dynamically generated URL into the retrieved requested content when the document write script statement is executed, where the dynamically generated URL is not present in the retrieved requested content returned to the proxy server; replacing, by the proxy server, the document write script statement with a call to a wrapper function, where the wrapper function, when called, rewrites the dynamically generated URL relative to the proxy server; and forwarding, by the proxy server, wrapped retrieved requested proxied content to the client computer. |