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.

Tag : Squid Windows
Comment
lakshminarayanans
Mar 22 2021
I have followed your post. But its not working for me in AWS EC2 windows instance.
Add a comment
FAQ
Q
what are the lines to be added in squid configuration file in windows7?
A
the lines to be added in squid configuration file in windows7 by following

acl new src 192.168.7.152
acl block dstdomain " /etc/squid/block.txt"
http_access deny new block
http_access allow new
Q
why we need to block domain using squid in windows 7?
A
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.
Q
how to configure squid on windows?
A
use the below link to configure squid on windows https://www.linuxhelp.com/how-to-configure-squid-in-windows-7/
Q
How to block keywords in linux server?
A
refer the below link to block keyword for linux server

https://www.linuxhelp.com/how-to-block-keywords-and-extensions-in-squid-2/
Q
where to refer the installation and configuration procedure for squid on Centos?
A
Follow this link to refer the installation and configuration procedure for squid on Centos
https://www.linuxhelp.com/how-to-install-and-configure-squid-part-1/