主权项 |
1. A method for rewriting by an intermediary content transmitted between a client and a server, the method comprising:
a) identifying, by a device intermediary to a client and a server, an access profile for a request from the client to access content from the server based on applying a rule to content of the request, the access profile including a rewrite policy for rewriting uniform resource locators (URLs) and a plurality of pattern sets comprising regular expressions for finding the URLs to rewrite in different types of content transmitted by the server to the client; b) finding, by the device, a URL in content in a response of the server to the request by matching a regular expression of one of the plurality of pattern sets to a portion of the content; c) rewriting, by the device, in accordance with the rewrite policy the URL found in the content; and d) transmitting, by the device to the client, the response comprising the rewritten URL.
|