Search squid archive

Re: Add parameter to all Reques URL?

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

 



On 11.04.2012 11:13, Brett Lymn wrote:
On Tue, Apr 10, 2012 at 12:49:36PM +0200, Matus UHLAR - fantomas wrote:
On 05.04.12 16:02, Simon Laredos wrote:
>I would like someone to offer help on a problem I have.
>What I need is Squid add a parameter to the end of all requests made
>from the proxy.
>Eg, when want to visit the page "http://www.google.com/"; in the end
>add the parameter "?Something" to make it this way
>"http://www.google.com/?something"; and that this applies to all
>sites, except personal sites.

I am afraid this is very dangerous to implement. What exactly do you
_need_ ?

At a guess I would say forcing the "safe search" option on to try and
reduce the number of porn images that come up in a search.

And yet they are asking for adding to "all requests through the proxy" ... http://facebook.com/?Something, http://kitten.net/?Something, ftp://google.com/?Something, imap://gmail.com/?Something

Specifically *all* "sites". When "site" URLs is actually a quite small sub-set of what actually goes through a proxy. URL alterations cannot be made to Skype VoIP URLs, video streams, online chat channels, HTTPS connections, any many other URI types.

As Alex said, doing this is dangerous unless you know precisely and clearly what you are doing. There are usually safer and cleaner ways to achieve the end goal. So we need to hear from the requester directly what *precisely* is wanted and why before we can properly assist with a solution. URL-rewite is very rarely the best option despite its apparent ease.

The example hints that it is Google safe-search being wanted, and unfortunately Google seem not to support the easy HTTP-header way of passing such limit parameters at this time. If anyone knows other wise and can point us at the header to insert, please do.

Amos



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

  Powered by Linux