06-13-06 06:13 PM
On 2006-06-13, Grzegorz <clarion@localhost.com> wrote:
> Hi
>
> I have Squid running mainly to block acces to porno sites
> The problem is it turns out it also blocks acces to other sites,
> one of which is the city bus timetable.
> If I turn the acl of I can access the site through a proxy
> but I want to keep the restrictions. Going through the list
> I did not notice any words that could possibly cause the problem
> In the log I get the following message
> 1149857502.737 2 62.121.115.188 TCP_DENIED/403 1170 GET
> http://rozklady.mpk.krakow.pl/aktualne/index.php - NONE/- -
> Is there a way to determine which word is causing the trouble ?
> The list hasabout 300 words so chceking these one by one and restarting
> squid every time is quite time consuming.
One thing you could do is start by eliminating parts of the URL. IE:
http://krakow.pl
See if that is blocked. (Maybe it doesn't like "krak.") Add parts of the
URL back in until you get blocked again.
http://mpk.krakow.pl
http://rozklady.mpk.krakow.pl
http://rozklady.mpk.krakow.pl/aktualne
http://rozklady.mpk.krakow.pl/aktualne/index.php
Yeah, the last two bring up the same page but they are different to squid.
This won't tell you what the issue is, but it will narrow it down. I'd be
amused to find out it was rejecting based on the word "lady."
If you wind up having to check 300 some odd words, may I recommend:
man egrep
man regexp
Have lots of fun.
--
Seth H Holmes
[ Post a follow-up to this message ]
|