Re: [squid-users] rewriter/redirector question

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 12 Aug 2009 16:46:38 +1200

Leonardo Carneiro wrote:
>
>
> Luis Daniel Lucio Quiroz escreveu:
>> Le mardi 11 août 2009 12:33:26, Leonardo Carneiro a écrit :
>>
>>> Hello everyone,
>>>
>>> Sometime ago i blocked some popular social network sites. However, some
>>> users manage to access those sites using sites like atunnel and others.
>>> Since blocking every single proxy site on the web is a invencible task,
>>> i chose to teach the users a little funny lesson, like redirecting then
>>> to durty porn site in front of the others when they tried to access a
>>> known forbidden site, before sending then serious notifications, and
>>> stuff like that.
>>>
>>> Researching about how to do that, i just created a acl selecting those
>>> sites, and my failure url is a html file with a javascript code that
>>> sends to another site:
>>>
>>> <!--
>>> To change this template, choose Tools | Templates
>>> and open the template in the editor.
>>> -->
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>>> <html>
>>> <head>
>>> <title></title>
>>> <meta http-equiv="Content-Type" content="text/html;
>>> charset=UTF-8">
>>> <script>
>>> window.location = "<some_site>";
>>> </script>
>>> </head>
>>> <body>
>>>
>>> </body>
>>> </html>
>>>
>>> Since rewriter/redirector looked to complicated to me at the time, and
>>> this was a very efficient solution, i leaved in that way.
>>>
>>> The question is: what i'm missing using a "dumb" solucion like this one
>>> instead of the rewriter/redirector?
>>>
>> you should write you own redirector
>>
>> I wrote on in perl:
>> http://pastebin.com/f42ca3ef4
>>
>> read code and enjoy
>>
>>
>>
> I keep listening this, but i just wanna know why. What a redirector has
> that this simple html file doesn't?

Nothing. And both of them are even worse than simply adding the URL of
the trick site itself to a deny_info line in squid.conf.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
   Current Beta Squid 3.1.0.13
Received on Wed Aug 12 2009 - 04:46:46 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 12 2009 - 12:00:02 MDT