SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0002754: dansguardian and google images - MantisBT
MantisBT - Endian Firewall
View Issue Details
0002754Endian FirewallProxy HTTPpublic2010-03-08 11:362010-06-07 13:46
luca-endian 
 
normalminorhave not tried
acknowledgedopen 
2.2 
future 
0002754: dansguardian and google images
We are seeing problems with dansguardian filtering of google images. If we go to images.google.com and we enter any words, it gets filtered as pornography (even if it wasn't pornography).

For example, if we put the search word "recipe" in at images.google.com we get:

http://images.google.com.au/images?hl=en&q=normal&um=1&ie=UT [^] F-8&sa=N&tab=wi *DENIED* Banned combination phrase found: (google, &safe=off) GET 39913 5 Pornography 1 403 text/html -

below is the URL which gives the above error:

http://images.google.com.au/images?hl=en&q=recipe&btnG=Search+Images&gbv=2&aq=f&oq= [^]


There is a whole discussion on this at http://tech.groups.yahoo.com/group/dansguardian/message/22994 [^] - it seems that its due to a change inthe google pages.

I worked out a workaround, but it requires manual edits. Can endian look at including this in the next update?


Workaround
-----------------
1. In the Content Filtering section of EFW, set Content Filter > Adult > Googlesearches to be allowed.


2. on the EFW command-line, edit the file /etc/dansguardian/phraselists/pornography/banned
so to comment out the line <google>,<&safe=off>
so the file looks like this:

#listcategory: "Pornography"

<family filter is off>,<altavista>,<search>
#<google>,<&safe=off>
<hl=en&safe=off&output=search>
<SafeSearch is OFF>

There are two files which need to be modified, both have the same contents:
/etc/dansguardian/lists/phraselists/pxxxography/banned
/etc/dansguardian/phraselists/pxxxography/banned

Place a hash at the start of these lines:
# <google>,<&safe=off>
#<hl=en&safe=off&output=search>

And then add a line:
<SafeSearch is Off>

3. Restart the HTTP Proxy server. Note: restarting the efw will reset this file back to default.

With this solution, everything gets blocked if safesearch is off in google. Otherwise, searching is allowed, and efw filters after google has applied its filter to the displayed results.
purple
Issue History
2010-03-08 11:36luca-endianNew Issue
2010-03-08 11:36luca-endianTag Attached: purple
2010-03-08 12:08peter-endianStatusnew => acknowledged
2010-03-08 12:08peter-endianTarget Version => 2.3.1
2010-06-07 13:46peter-endianTarget Version2.3.1 => future

There are no notes attached to this issue.