How to block domain using squid in windows 7
To block domain using Squid in Windows 7
Squid is a caching proxy for the Web and it by tracking the objects use over the network. Squid has variety of uses and advantages such as speeding up web browsing for end user, reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. It also can work as web filtering and can control the browsing traffic. In this tutorial, you will learn about the method to configure Squid Proxy Cache on Windows 7.
The installation of Squid on Windows 7 has already been covered, if you have missed it you can check it from here.
Installing squid
First, open the Squid configuration file.
And in that file, you need to add the following. Refer the following images to see the places where those lines are to be added.
acl new src 192.168.7.152
acl block dstdomain " /etc/squid/block.txt"
http_access deny new block
http_access allow new
Once it is done, you shall save and close the configuration file.
Now, for adding the block list file, you need to open the Squid folder
And in that folder, create a new text file.
In that text file, you add the sites that are to be blocked and then save and close it.
You should also stop and start the squid service for the changes to take effect.
Once the service is started again, you shall check the blocked site in client machine.
You can notice that you can’ t access those blocked sites. With this, the method to block a domain using squid in Windows 7 comes to an end.
Comments ( 1 )