Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way that I can configure my router to rewrite http requests?

So for example, if:

http://www.example.com/porn.gif 

is being accessed, it'll be re-written as:

http://172.16.0.1/denied.gif

But transparently returned to the client?

Thank you.

share|improve this question

1 Answer 1

I don't believe that Cisco IOS supports anything beyond basic interception and redirection of HTTP traffic. Sounds like you want to use WCCP with your router and a separate Squid cache server in an Interception Proxy configuration.

http://wiki.squid-cache.org/SquidFaq/InterceptionProxy#WCCP_-_Web_Cache_Coordination_Protocol

share|improve this answer
    
How can I do an HTTP redirection? That would work for our needs as well. Thanks! –  ensnare May 18 '10 at 6:52
    
See the document I linked above. There are plenty of examples and pointers to Cisco documentation. –  obfuscurity May 18 '10 at 18:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.