Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want lo block some porn domains, i tried this squid configuraztion:

acl localnet src  
acl loggedUser  proxy_auth REQUIRED
acl proxyUser external nt_group ProxyUser
acl pornDomains dstdomain "/etc/squid/porndomains.txt"

http_access deny !localnet
http_access deny !loggedUser
http_access deny pornDomains
http_access allow proxyUser

And this is my porndomains.txt:

During squid startup i get no errors or warning, but i still access to This from access.log:

1342771140.754    283 TCP_REFRESH_MISS/200 11377 GET admin DIRECT/ text/html
share|improve this question
up vote 0 down vote accepted

Try to put a . before your domains in the porndomains.txt.

You are blocking, not or will block all of those.

Happy testing!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.