Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I can block sites. In my ACL file, let's say I have blocked
.youtube.com
.*sex.*
.*game.*
...
...
...
However when I do a google search for the word sex, it is blocked as well. I do not want the search to be blocked and I would like it to display the search result but if I visit the link www.sex.com, it will be blocked.
http_access deny StreamingRequest1 all
http_access deny StreamingRequest2 all
http_access deny StreamingRequest3 all
http_access deny StreamingRequest4 all
http_reply_access deny StreamingReply1 all
http_reply_access deny StreamingReply2 all
http_reply_access deny StreamingReply3 all
http_reply_access deny StreamingReply4 all
# deny all other access to this proxy
http_access deny privoxy
http_access allow localhost password
http_access allow webconfig_lan password
http_access deny all
http_reply_access deny deny_rep_mime_flashvideo
http_reply_access deny deny_rep_mime_shockwave
http_reply_access allow all
I think I understand what you're doing. It sounds like you just want to match the server name, and not any part of the GET request. Substitute your rule for:
anomie is not saying you should use dstdomain. Infact he said use dstdom_regex and with this, squid will match words like 'sex' in the url only and NOT in search engine. you should read carefully all the help that is offered to you here. Hope this clarifies it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.