Question

Locked

Squid: Acl Configuration

By tataa ·
Hi all,
Pls could someone help me with the correct syntax of the acl command for banning sites with certain words from being accessed from my network. The match should be for both url and content.

Tata

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

ban websites or domains in (squid) acl url_regex

by imran.khokhar In reply to Squid: Acl Configuration

so simple & 100% work in (linux - redhat 7-9 fedora 1-6
simple add this lines

acl blocke url_regex -i windowsupdate xxx porn hotmom update.microsoft

http_access deny blocke

#service squid reload
hapy-hapy by

Collapse -

ACL URL CONFIG

by benpal4ever In reply to Squid: Acl Configuration

Good day...

you can try
Ex.
acl yourlan src 192.168.1.1/16
acl bannedsites url_regex -i http://www.sex.com/
http_access allow yourlan
http_access deny bannedsites

[you can use a text file that contain the list of pornsites you may wish to ban in your network. all you need to do is to point the directory of your text file in the url_regex -i line.

ex. acl bannedsites url_regex -i "/etc/squid/bannedsites.txt"

hope this will help!

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums