How to redirect specific url?

RelaxTheMind

Platinum Member
Oct 15, 2002
2,245
0
76
My goal is to point one specific website address to another. not a dns thing.

when people are connected to my wifi i want it when www.website.com/pics/face.jpg is accessed it redirects and loads to www.photobucket.com/stuff/here/anotherface.jpg instead.

everything im finding on searches is dns and hotspot type stuff which wont accomplish what i am trying to do.

the only thing that i can come up with is redirecting the a whole domain another host i have and have it soley linking a specific folder or file.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
If you are really wanting to return a HTTP 301/307 redirect when a specific URL is requested you are going to need some sort of an application layer firewall.

You need to be able to inspect the outgoing HTTP requests in real time and return HTTP 301/307 redirects when you detect a GET request for a specific resource while not passing on the original request.

Depending on the scale of the network, a Squid proxy server setup as a transparent proxy would most likely work just fine and is probably what I would use for a basic implementation.
 

RelaxTheMind

Platinum Member
Oct 15, 2002
2,245
0
76
omg... where has squid been my whole life. i went ahead and made a dedicated squid/firewall machine.