Wesley MOUEDINE ASSABY wrote:
> Hello
> We are on openbsd system (4.3)
> With Squid 2.6 and jesred 1.2.1, how can i replace all .swf with the
> image : blocked.gif ?
>
> In squid.conf, i have added :
> url_rewrite_program /usr/local/libexec/jesred
>
> jesred.conf :
> allow=/etc/jesred/redirector.acl
> rules=/etc/jesred/redirector.rules
>
> redirector.acl:
> 0.0.0.0/0
>
> redirector.rules:
> regex *.swf http://x.x.x.x/blocked.gif
>
> Can you help me please
> thank's
Try the following:
acl badswifT rep_mime_type ...<whatever the swf mime type is>...
acl badswifE urlpath_regexp -i .*\.swf(\?.*)?
deny_info http://URL-of-blocked.gif/ badswifT
deny_info http://URL-of-blocked.gif/ badswifE
http_access deny badswifE
http_reply_access deny badswifT
Amos
-- Please use Squid 2.7.STABLE3 or 3.0.STABLE8Received on Fri Jul 18 2008 - 12:06:50 MDT
This archive was generated by hypermail 2.2.0 : Fri Jul 18 2008 - 12:00:04 MDT