Thursday, November 19, 2009

Squid Guard

Scenario 1 :


I want to block certain web site with specific time using squid. I want to block all social web site during office hour. After office hour, they can access the site.

How to set in squid? Is there any link?

Thank you.

The solution :

install SquidGuard then u can do time-based blocklist.

Use time based acl and url regex.

Block http access to certain website between 8.00am to 12.00pm and 1.00pm to 4.00pm.
This mean that sites only can be accessed between 12.01pm and 12.59pm.

acl on squid.conf will be like this:

acl waktu1 time 08:00-12:00
acl waktu2 time 13:00-16:00
acl blocksocialnetwork url_regex "/etc/squid/socialnetworkdomain.acl"
http_access deny blocksocialnetwork waktu1
http_access deny blocksocialnetwork waktu2

Put domains of social network sites you want to block in /etc/squid/socialnetworkdomain.acl


Taken from for my revision.

No comments:

Post a Comment