Showing questions tagged: Show all questions
  • Solved
  • Archived

Large PAC file doesn't seem to work properly

I have three PAC files. First, https://vindicar.name/proxy.pac (under 1KB) Second, https://vindicar.name/proxy2.pac (1.9MB) Third, https://vindicar.name/proxy3.pac (519… (read more)

I have three PAC files.

First, https://vindicar.name/proxy.pac (under 1KB)

Second, https://vindicar.name/proxy2.pac (1.9MB)

Third, https://vindicar.name/proxy3.pac (519KB)

They are almost identical in structure, performing a search through a list of IPs to determine is a proxy needs to be used. The only difference is that first has a tiny list of ips. the second has actual list of IPs, and the third has a significantly reduced list. The largest one was generated by a script, so I don't expect any sneaky syntax errors in there.

Smaller PAC files work just fine, directing requests through a private proxy. I tested it by adding whatismyipaddress.com to blacklisted domains and comparing its output to another "get my ip" site. The largest PAC file seems to have no effect whatsoever, with Firefox falling back to direct connection.

Is there any size and/or execution time restriction on PAC files?

Appendix 1: General structure of PAC files above:

 function FindProxyForURL(url, host) {
   var ipblacklist = [
   // List of IPs goes here, in decimal notation:
   // "127.0.0.1",
   // "192.168.0.1",
   // and so on
   ];
   var domainblacklist = [
   'privoxy.org',
   'whatismyipaddress.com',
   ];
 
   function endsWith(str, suffix) {
     return str.indexOf(suffix, str.length - suffix.length) !== -1;
   }
   var blocked = false;
   for (var i=0; !blocked && (i<domainblacklist.length); i++)
     blocked = blocked || ((host == domainblacklist[i]) || endsWith(host, '.'+domainblacklist[i]));
   if (blocked || (ipblacklist.indexOf(dnsResolve(host)) != -1))
     // That proxy is accessible via my VPN, you will have to substitute your own for testing
     return "PROXY 10.42.0.1:8118; SOCKS5 10.42.0.1:8118";
   else
     return "DIRECT";
 }

Asked by Vindicar 1 year ago

Answered by Tonnes 1 year ago

  • Solved
  • Archived

ONE website crashes my modem - only with Firefox.

Sorry, but this is a repeat of an old problem, with a new glitch. This is the text of the old question: "When I connect to homedepot.com, after a minute or so, I lose my … (read more)

Sorry, but this is a repeat of an old problem, with a new glitch.

This is the text of the old question: "When I connect to homedepot.com, after a minute or so, I lose my DSL connection (red light on modem). This ALWAYS happens on that web site and ONLY on that web site. What the hell? It does not happen with (ugh) internet explorer. I am using Firefox 54.0.1 64-bit on Windows 7, SP1."

I have updated to the latest Firefox, and still have the problem on the computer.

I also use Firefox on my Android phone. Today, I connected to homedepot.com using the phone through my wi-fi router. The modem crashed. After reconnecting, I connected to the same site - again through my wi-fi router - using Chrome on my phone, and there was no problem. So it isn't the computer's OS, as was suggested. I have been using Firefox since version 1.0 and have never had any serious - or strange - problems. Hate to give up on it. Any ideas?

Asked by _Howard 1 year ago

Answered by _Howard 1 year ago

  • Solved
  • Archived

Fox News Channel player does not work on Firefox 60

I have repeatedly asked this question from Firefox version 53 through Firefox version 60, and have not received help from this forum. Why will FNC embedded video player n… (read more)

I have repeatedly asked this question from Firefox version 53 through Firefox version 60, and have not received help from this forum. Why will FNC embedded video player not work on FF. Error 2 is always displayed.

Asked by loyall 1 year ago

Answered by loyall 1 year ago