LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dansguardian- filter google but not kidrex (https://www.linuxquestions.org/questions/linux-newbie-8/dansguardian-filter-google-but-not-kidrex-818087/)

chuafengru 07-05-2010 09:30 AM

Dansguardian- filter google but not kidrex
 
Hi guys,

I recently came into a problem where i was trying to restrict kids to www.google.com and any other localized google search engines. However, i need to allow them to use www.kidrex.org. Im using squid with dansguardian filtering, and is using a whitelist on squid. which means i only allow whats on the whitelist and deny all.

My problem:
-allow kidrex.org in the whitelist only, however the search engine could not display any results.

this problem forced me to put www.google.com on the whitelist, so that kidrex.org works properly. And this isn't what i want as it introduce potential risk of explicit materials to children.

is there any ways to allow kidrex only, but deny any other access to google search engines?

Regards,
FR

Tinkster 07-06-2010 06:01 PM

I'm afraid there's not really much you can do. The URLs that kidrex
displays are dynamically generated via javascript from the google
home-page, and I don't know of any way of 'preprocessing' that on
the proxy to suit your needs.


Cheers,
Tink

win32sux 07-12-2010 03:48 AM

AFAICT, you should be able to get it working with something like this (example):
Code:

acl kidrex dstdomain .kidrex.org
acl kidrex_google1 url_regex ^http://www.google.com/afsonline/show_afs_search.js
acl kidrex_google2 url_regex ^http://www.google.com/cse?

http_access allow kidrex
http_access allow kidrex_google1
http_access allow kidrex_google2
http_access deny all

Basically, you allow only the specific Google URLs which KidRex requires (instead of the entire site).


All times are GMT -5. The time now is 11:37 PM.