Search squid archive

Re: [squid-users] blocking urls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Henrik,

Got you!
Now how am i supposed to stop this url, forl exemple?
Waht is the better way to stop a url like the one that
followed?

I arranged to do it like it follows:

^http://www.awprofessional.com/articles/article.asp?p=363731$

with url_regex.

Anyway i would like to know if this is the proper way
to stop it or if there is a better to doit with
dstdom_regex.

Regards

Thank you very much for your time.

*cipher*

> On Sun, 6 Feb 2005, cipher wrote:
>
> > I would use:
> >
> > acl p-block-hacking-urls urlpath_regex -i
> > "/usr/local/squid/filter/hacking/urls"
> >
> > Because that is he file in which the url that
> i want to
> > block, is in:
> >
> > root@oreon:/usr/local/squid/filter/hacking#
> grep
> > awprofessional.com urls
> >
> awprofessional.com/articles/article.asp?p63731
>
> These are not proper patterns for
> urlpath_regex.
>
>
> urlpath_regex is a regex match to the file path
> after the hostname, i.e.
> in case of the URL
> http://www.awprofessional.com/articles/article.asp?p63731
> urlpath_regex
> will do a regex pattern match against
> "/articles/article.asp?p63731"
>
> regex is a pattern matching language, same as
> used by grep and most other
> UNIX tools.
>
>     man 7 regex
>
> or your favorite UNIX book (there is even books
> about regex alone..)
>
> Regards
> Henrik
> 


-------------------------------------------------
Email Enviado utilizando o serviço MegaMail

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux