Search squid archive

Re: reverse proxy filtering?

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

 



On Sat, Apr 18, 2009 at 5:18 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
> Jeff Sadowski wrote:
>>
>> I'm new to trying to use squid as a reverse proxy.
>>
>> I would like to filter out certain pages and if possible certain words.
>> I installed perl so that I can use it to rebuild pages if that is
>> possible?
>>
>> My squid.conf looks like so
>> <==== start
>> acl all src all
>> http_port 80 accel defaultsite=outside.com
>> cache_peer inside parent 80 0 no-query originserver name=myAccel
>> acl our_sites dstdomain outside.com
>
> aha, aha, ..
>
>> http_access allow all
>
> eeek!!

I want everyone on the outside to see the inside server minus one or
two pages. Is that not what I set up?

>
>> cache_peer_access myAccell all
>> <==== end
>>
>> how would I add it so that for example
>>
>> http://inside/protect.html
>>
>> is blocked?
>
> http://wiki.squid-cache.org/SquidFaq/SquidAcl

so I want redirector_access?
Is there an example line of this in a file

I tried using

url_rewrite_program c:\perl\bin\perl.exe c:\replace.pl

but I guess that requires more to use it? an acl?
should "acl all src all" be "acl all redirect all" ?

>
>> and is it possible to filter/replace certain words on the site
>>
>> like replace "Albuquerque" with "Duke City" for an example on all pages?
>
> No. no. no. Welcome to copyright violation hell.

This was an example. I have full permission to do the real translations.
I am told to remove certain links/buttons to login pages. thus I
replace "<a herf=inside>button</a>" with "" Currently I have a
pathetic perl script that doesn't support cookies and is gong through
each set of previous pages to bring up the content. I was hoping squid
would greatly simplify this.
I was using www::mechanize I know this isn't the best way but they
just need a fast and dirty way.

>
> Amos
> --
> Please be using
>  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
>  Current Beta Squid 3.1.0.7
>


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

  Powered by Linux