A user uncovered a strange bug on Google search where porn results are returned even when Google Safe Search is turned on.
These search queries are meant to return nothing. For example:
- [ -s “s 2″ ]
- [ -title “title 4″ ]
- [ 4 "1 4" ]
These search queries are meant to return no results. Here is what Google engineer replied:
I’m a Google search engineer. Anon User and Anon User did some excellent analysis. As a web search query, [-4^(1/4)] is interpreted like [-4 "1 4"], as in “Find me pages which contain a 1 next to a 4, but which do not contain a 4.” This should return zero results, because it is impossible to satisfy both requirements. However, we have uncovered a bug that causes some web pages to “match” these contradictory queries. Since these are the only results that “match” the query, they are the results that get shown. We are working on a bug fix.
Here is a screen shot of what is showing:
What does this mean?
You are basically asking Google to find pages that don’t have the word title in a phrase like “title 4″ which should return no results. However the use of numbers in the query seems to trigger the but. If you just search for something like -title “title p” without using numbers, you will get no results which is the correct results.
It is unclear why Google thinks why these porn sites have these combination. As of writing this post, Google is still showing these porn sites in their results.