<div dir="ltr"><div class="gmail_extra">I tried on different browser but it's the same. Clearing browser cache and stopping the service made no difference either. I don't know if Squid does change Ubuntu network settings. Any particular place/file to check it out?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 10, 2014 at 6:34 PM, Antony Stone <span dir="ltr"><<a href="mailto:Antony.Stone@squid.open.source.it" target="_blank">Antony.Stone@squid.open.source.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Monday 10 November 2014 at 17:12:23 (EU time), Efe wrote:<br>
<br>
>     acl myrule dstdom_regex "/etc/squid3/domainblock.txt"<br>
>     http_access deny myrule<br>
><br>
> where domainblock.txt is<br>
><br>
>     <a href="http://someaddress.com" target="_blank">someaddress.com</a><br>
>     <a href="http://blockthis.net" target="_blank">blockthis.net</a><br>
<br>
</span>As Amos said, use dstdomain instead of dstdom_regex.<br>
<span class=""><br>
> Now whenever i enter <a href="http://someaddress.com" target="_blank">someaddress.com</a> url & hit enter, it (squid or<br>
> something on the network level) redirects to the localhost page. That's<br>
> fine as long as i want to restrict access to that website.<br>
><br>
> Problem is, changing config "http_access allow myrule" and reconfiguring,<br>
> parsing and restarting squid and then the computer does not change<br>
> anything, i.e i still cant access <a href="http://someaddress.com" target="_blank">someaddress.com</a>. Removed the settings<br>
> from config, no luck again.<br>
><br>
> As i said, iptables is empty. So what might be the reason then?<br>
<br>
</span>Local browser cache on the client machine?<br>
<br>
Try testing with client A, reconfigure, and then re-test from client B (where A<br>
and B are either different computers or different browsers, or both).<br>
<br>
<br>
Regards,<br>
<br>
<br>
Antony.<br>
<span class="HOEnZb"></span><br></blockquote></div></div></div>