Search squid archive

Re: Block Certain Mime Types

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

 



Jeff Rigby :
Been at this for a few hours to no avail so I'd thought I turn to the
collective genius of this list.

I'm trying to block all connections to anything but images, text,
javascript, and CSS. I would like to reply with a 404 error. My server is
setup in Accel mode. Even blocking only text/html should be sufficient for
what I need.

I've tried many variations of the following but nothing seems to take. It
serves text/html just fine. I've tried:

acl allowext url_regex -i \.jpg$ \.png$ \.gif$ \.css$ \.js$
http_access allow !allowext
http_access deny !allowext



try:

acl allowext url_regex -i \.jpg$ \.png$ \.gif$ \.css$ \.js$
http_access allow allowext
http_access deny all


--
Jeff Pang
DingTong Technology
www.dtonenetworks.com

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

  Powered by Linux