Andres Salazar wrote:
Hello, Iam using: acl allowedurls url_regex "/etc/squid/url.txt" and then only allowing localnet to access that acl. a.) If a user behind localnet types: http://www.facebook.com/@http://www.allowed.org/page.html they are able to peak some content of the disallowed website facebook. Is it possible ot set the regex so that it is more strict and only matches if it is located at the beginning of the URL? The original line in the .txt file is: http://www.allowed.org/page.html
http://www.gnu.org/software/emacs/manual/html_node/emacs/Regexps.html see: ^
b.) Also, what would be the correct regex for something like this: http://*.google.com Obviously that doesnt match.
Best to avoid regex for domain matching. Use: acl google dstdomain .google.com Amos -- Please be using Current Stable Squid 2.7.STABLE8 or 3.0.STABLE24 Current Beta Squid 3.1.0.16