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?p=363731
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?p=363731 urlpath_regex
will do a regex pattern match against "/articles/article.asp?p=363731"
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
Received on Mon Feb 07 2005 - 13:47:25 MST
This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:01 MST