Configure SQUID proxy to block sites

This is only a fast how to, so you must know where your squid.conf and other stuff about squid on your machine. 

The squid’s acl sintax is

acl [acl name] [type] [type’s option]

Create new plain text file contain the domain to block!

example 

.redhat.com

.facebook.com

Now add new acl to your squid.conf

acl blockSites dstdomain “path_to_your_file/your_file’s_name”

http_access deny blockites

Ok now restart or reload your squid.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s