Jump to content

Recommended Posts

Posted

I'm in the midst of setting up SquidGuard and am at a bit of a loss as to how to configure it to do nothing but rewrite Google searches.

 

This is my config - and it doesn't do anything:

 


rewrite google_search {
 s@(google\..*/search?.*q=.*)@\1\&safe=vss@i
}


acl {
default {
	pass	 none
	rewrite google_search
}
}

 

The rewrite rule is copied verbatim from another site which confirmed it does what I want, but it isn't rewriting.

 

Can anyone give me a clue as to how I get this thing working?

Posted
You accessing the right port on the client (best way is to force Squid to bind on the loopback, then you can't have any 'accidental' bypassing of SquidGuard)?
Posted (edited)

What do you mean? I have it running as the 'url_rewrite_program' in the squid config. Squid is running on port 8080.

 

Squidguard is being called - it has 5 processes running (per the squid config), and the squidguard log is reporting stuff:

 

2216 no ACL matching source, using default

Edited by localzuk
Posted (edited)

If I run the command:

 

echo "http://www.google.co.uk/seach?q=test / - - GET" | squidguard -c /usr/local/squidguard/squidguard.conf

 

in MinGW, Squidguard replies as it should with:

 

!GET! http://www.google.co.uk/search?q=test&safe=active /- - -

 

I suspect this is down to my use of MinGW...

Edited by localzuk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...