tambah konfigurasi pada ee /usr/local/etc/squid/squid.conf
acl katablacklist url_regex -i "/usr/local/etc/squid/blacklist/kata-blacklist.txt"
acl domainblacklist dstdomain "/usr/local/etc/squid/blacklist/domain-blacklist.txt"
acl ipblacklist dst "/usr/local/etc/squid/blacklist/ip-blacklist.txt"
tambah rule access
http_access deny katablacklist
http_access deny domainblacklist
http_access deny ipblacklist
http_access deny all # harus dibawah
bwt directory
# mkdir /usr/local/etc/squid/blacklist
bwt file kata-blacklist.txt, domain-blacklist.txt, ip-blacklist.txt dengan editor kesukaan anda isi masing masing (harus terisi)
restart squid
# squid -k reconfigure
Tidak ada komentar:
Posting Komentar