[squid-users] Re: how i can replace website source code content !!

2014-03-18 Thread babajaga
To be inserted in squid.conf:
---
acl block dstdomain block.lst
http_access deny block
#Either
deny_info BLOCKED block # Create file BLOCKED in squid error message
directory, i.e. in
#/usr/local/squid/share/errors/en
#or
#deny_info http://my.domain.com/my_block_page.html block #alternative, but
it needs http-server

-

Edit file block.lst:
.twitter.com
.facebook.com



However, it will still be possible to use https to access facebook etc. So
you might consider to forbid https completely.






--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-i-can-replace-website-source-code-content-tp4665213p4665282.html
Sent from the Squid - Users mailing list archive at Nabble.com.


[squid-users] Re: how i can replace website source code content !!

2014-03-16 Thread babajaga
To replace website src content can be done with content adaption
techniques, using ecap etc.
However, for your purpose this seems to be far too complicated. (BTW: I have
a working solution for this, the purpose of which is to inject ads, to
finance open hotspots.)
However, in case you have some smart algorithms to analyze web site content
on the fly, to check, whether it contains  content to be blocked (porn,
gambling etc.) or not, then, may be, I can help you :-)

Usually, you would have some form of blacklisted sites, so one ACL, using
the blacklist and squids.conf deny_info directive will do it for you
nicely.



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-i-can-replace-website-source-code-content-tp4665213p4665220.html
Sent from the Squid - Users mailing list archive at Nabble.com.