I've been at this for a while and i'm stumped. I need to create and Automatic Configuration script for one of our servers. It needs to be able to individually block/reroute certain url's.
For example, our product uses Facebook and if the facebook API goes down I want it to easily be able to reroute to a page that says "Error ..". Or if I need to block just facebook to do some testing it would be possible.
I've read many articles and even found a tutorial on .pac
files (Designing and implementing effective PAC file solutions). When testing this I've written a script. However, when I import it in Internet Explorer 9 it doesn't do anything.
Any help would be of assistance and greatly appreciated.
Example code. I just want it to redirect to Google if the facebook url is used.
function FindProxyForURL(url, host) {
if(url.substring(0, 15) == "www.facebook.com") return "www.google.com: 8080";
else return "DIRECT"; }