Social profiles

Block Anonymous Proxy sites in Squid Proxy Server

Step 1: Use your favorite editor and open squid.conf

# vi /etc/squid/squid.conf

Step 2: Make a new ACL, for keywords if you don’t have yet.

acl anon-prox-sites urlregex –i “/squid/blocked/keywords”

Step 3: Deny access to this newly created acl.

http_access deny anon-prox-sites

Step 4: Save and Close squid.conf file.

:wq! [Enter]

Step 5: Create “keywords” file.

# cd /squid/blocked/
# touch keywords

Step 6: Add “browse.php?u=” to keywords file.

# echo “browse.php?u=” >> keywords

Step 7: Signal squid to reload its conf file.

# /etc/init.d/squid reload

2 thoughts on “Block Anonymous Proxy sites in Squid Proxy Server”

  1. I simply want to tell you that I’m beginner to blogging and truly liked your web-site. Almost certainly I’m going to bookmark your blog . You actually have perfect articles. Kudos for sharing with us your web-site.

Leave a Reply

Your email address will not be published. Required fields are marked *