Restricting access to sites

Posted by Paul on Ask Ubuntu See other posts from Ask Ubuntu or by Paul
Published on 2011-12-17T00:25:28Z Indexed on 2012/04/02 5:41 UTC
Read the original article Hit count: 250

Filed under:
|
|

I'm having some problems configuring my local proxy server so that it would restrict access to certain websites.

The proxy server I'm using is Squid; I edited its configuration file found in /etc/squid/squid.conf to include the following:

acl wikipedia dstdomain .wikipedia.org
http_access deny wikipedia

I tried to redirect elinks to use Squid. According to Squid's config file, it listens to port 3128, so in /etc/elinks/elinks.conf I added the following:

set protocol.http.proxy.host = "localhost:3128"

I also restarted Squid with sudo /etc/init.d/squid restart, but I can still access the banned websites using Elinks. What did I do wrong?

© Ask Ubuntu or respective owner

Related posts about internet

Related posts about squid