LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   urlpath_regex is not denying... (https://www.linuxquestions.org/questions/linux-newbie-8/urlpath_regex-is-not-denying-655818/)

mredloft 07-15-2008 01:49 AM

urlpath_regex is not denying...
 
I have RHEL 4 installed on my machine which i wanted to use as a proxy. My proxy(squid-2.6 STABLES-3.el5) is running properly to some extend. I was trying to use 'urlpath_regex' to block '.jpg, .mp3...etc' but this does not deny at all. what might be the reason? the acl looks like this...

:
:
acl download-block urlpath_regex -i \.jpg$ \.mp3$

http_access deny download-block
:
:

thanks
MR

linuxlover.chaitanya 07-15-2008 02:27 AM

Can you mention your http_access area ?
The syntax seems to be ok.
The problem could be http_access area.

mredloft 07-16-2008 12:04 AM

Here's my acls and http_access area.

acl our_networks src 10.180.0.0/255.255.255.0
acl blocked_list url_regex -i "/etc/squid/banned.list"
deny_info ERR_BANNED_list1 blocked_list

acl download-block urlpath_regex -i \.jpg$ \.mp3$

acl blocked_domains dstdom_regex -i "/etc/squid/bad_domains.list"
deny_info ERR_BANNED_baddomains blocked_domains
#acl accesstime time 9:00-17:00
acl ncsa_users proxy_auth REQUIRED

http_access deny blocked_list
http_access allow ncsa_users
http_access deny download-block
http_access deny blocked_domains

#http_access allow our_networks accesstime
http_access allow our_networks
http_access deny all

====
Thanks..

linuxlover.chaitanya 07-16-2008 01:06 AM

My squid configuration is similar and it is working fine.
You should wait for some expert to come up. I do not find anything wrong.

iseymur 01-20-2010 04:09 AM

I have fedora 12 installed on my machine
My proxy(squid-3.1) is running .

:
:
acl flockfiles urlpath_regex -i \.exe$ \.mp3$

http_access deny flockfiles
:


bur squid doesnt block

didi you do your problem?
if yes please help me

Seymur

linuxlover.chaitanya 01-20-2010 10:48 PM

Can you use url_regex instead of using urlpath_regex and see if it works?

iseymur 01-21-2010 09:16 PM

squid urlpath_regex problem
 
I have fedora 12 installed on my machine
My proxy(squid-3.1) is running .

:
:
acl flockfiles urlpath_regex -i \.exe$ \.mp3$

http_access deny flockfiles
:


bur squid doesnt block

didi you do your problem?
if yes please help me

mmy squit works at home normally but doest work at work

Seymur

linuxlover.chaitanya 01-21-2010 11:25 PM

Why would you want to post the same question again without even considering the previous post?

iseymur 01-29-2010 12:55 PM

I like block different users different sites
 
Example I have 3 user list and 3 file with block site names

acl group1 src 192.168.0.2 192.168.0.3 192.168.0.4/24
acl group2 src 192.168.0.5 192.168.0.6 192.168.0.7/24
acl group3 src 192.168.0.8 192.168.0.9 192.168.0.10/24

and

acl blocksites1 url_regex -i "/etc/squid/block1.txt"
acl blocksites2 url_regex -i "/etc/squid/block2.txt"
acl blocksites3 url_regex -i "/etc/squid/block3.txt"

I like block blocksites1 for group1, blocksites2 for group2,
blocksites3 for group3,

help me please


All times are GMT -5. The time now is 02:59 PM.