Patent ID: 8504651

Claim:
A system for injecting code into an HTML file, comprising: a memory that stores code; and a processor communicatively coupled to the memory and operable to: receive a request for content; determine whether the request for content includes a request for compression and, if so, delete the request for compression from the request for content; forward the request for content to a content server; receive the requested content from the content server; if the retrieved content is associated with an HTML file, then inject the code into the HTML file to thereby modify the HTML file; and communicate the modified HTML file to a client; wherein the memory stores a list identifying a plurality of web pages, and the processor is further operable to: determine whether the requested content is associated with a web page from the list and, if not, then inject the code; and determine whether the request for content is associated with a secure connection and, if not, then inject the code.