5271 Views 4 Replies Latest reply: Jan 13, 2011 10:06 AM by harry @ pmsi
as i understand that means that i should create new zone for each website that i want to block? But if I have a list of 100 websites? it is a pain to create such number of zones
So my idea was to create a blocklist (just a list of websites that i want tot block, that i can modify whenever i want) somewhere on the server. All the client computers at first will request my server if the website is in blocklist, and only after will pass the website or not.
Is it possible and how to make it?
It seemed to me that Forward Proxy is the easiest solution, but for some reason it doesn't work :/
Apache2 allows you to do this with block directive location containing
# note there are no spaces in allow,deny
# the deny prevails because it is the last order received
allow from all
deny from xx.xxx yy.yyy
# note there is a space separating multiple ip addresses
# or you can specify by url or domain as in
The following tutorial is more complete if you don't have an apache reference:
If you put the directive in etc/apache2/httpd.conf it applies to all sites on your server,
or etc/apache2/sites/domain.conf to apply only to a specific site on your server.