Please Help With PAC File


Regular Member
Dec 7, 2008
Hi I was wondering if any1 could help me set up a PAC file for foxy proxy? As I understand, a PAC file uses javascript to change your IP address based on certain conditions. I found this PAC file on the internet:

function FindProxyForURL(url, host)

// Plain Hostname check
if (isPlainHostName(host)) {
return "DIRECT";

// loopback
else if ( host == "" || host == "localhost" ) {
return "DIRECT";

// Internal DNS Suffixs
else if ( dnsDomainIs(host, "") || dnsDomainIs(host, ".bbbbbb.local") || dnsDomainIs(host, "")) {
return "DIRECT";

// Internally Hosts Sites
else if ( dnsDomainIs(host, "") || dnsDomainIs(host, "") || dnsDomainIs(host, "") || dnsDomainIs(host, "") || dnsDomainIs(host, "")) {
return "DIRECT";

// Internal IP Ranges
else if (isInNet (host, "", "") || isInNet (host, "", "") || isInNet (host, "", "")) {
return "DIRECT";

else {
return "PROXY webproxy.bbbbbb.local:3128";

Except the aaaaaaa, bbbbbbb etc. are supposed to be real URLs. Can some1 explain to me how this works. What are these URLs for? Does the PAC file find proxies from that site or something?

I was wondering if I could make it so it changes my IP every 2 minutes? Also, what type of file do i save a PAC file as? Thanks for your help!
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock