Ad Blocking Proxy = abloprox

as an act of digital hygiene, I installed abloprox on a raspi and added this PAC file to save some keystrokes when configuring:

function FindProxyForURL(url, host) {
  if (shExpMatch(host,"*")) return "DIRECT";
  if (shExpMatch(host,"*.local")) return "DIRECT";
  if (shExpMatch(host,"*")) return "DIRECT";
  if (shExpMatch(host,"*")) return "DIRECT";
  // auto config:
  // 1. ensure there's a host 'wpad' in the current network, see
  //   -
  //   -
  // 2. have a http webserver running on that host
  // 3. ensure http://wpad/wpad.dat or contains a PAC file like in
  // return "PROXY wpad:3126"; // Default return condition is the proxy on host 'wpad'.
  return "PROXY <hostname_of_the_raspi>:3126"; // Default return condition is the proxy.

Update: I pushed this one step further recently and use the automatic proxy-configuration itself to filter — see

Update: hu – it took Android until version 5.0 (lollipop) to support PAC.

Comments 1

  1. Marcus Rohrmoser wrote:

    See also

    Posted 19 Sep 2014 at 10:53 am

Post a Comment

Your email is never published nor shared. Required fields are marked *