Tag Archives: blocker

Ad Blocker using Squid Proxy

Blacklist Run following command to create /etc/ad_block.txt file curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/ad_block.txt Configure Add config to squid.conf ## disable ads ( http://pgl.yoyo.org/adservers/ ) acl ads dstdom_regex “/etc/ad_block.txt” http_access deny ads Automating the Fetching of the Blacklist Create script /etc/newads.sh #!/bin/bash curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/squid3/ad_block.txt ## restart squid /usr/sbin/squid3 restart […]

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.