Bug Turns Google “Anti-SafeSearch” On, Provides Porn Results

There’s a strange bug on Google where search queries that should return no matches are instead turning Google into a porn search engine, almost as if an “anti-SafeSearch” feature is being enabled. Impossible Queries = Porn! The Verge highlighted a Quora post about the bug, where doing some searches for “contradictory” or impossible to solve […]

Chat with SearchBot

google-search-censored-featured

There’s a strange bug on Google where search queries that should return no matches are instead turning Google into a porn search engine, almost as if an “anti-SafeSearch” feature is being enabled.

Impossible Queries = Porn!

The Verge highlighted a Quora post about the bug, where doing some searches for “contradictory” or impossible to solve queries brings back porn listings.

For example, queries like the ones below currently do this (and be forewarned, you’re going to get porn results at Google if you click on these links):

Here’s an example of what the first query brings back, which I’m showing because the descriptions themselves are fairly “safe” even though the content they lead to is adult in nature (for some of the other queries, the descriptions can be graphic):

-s _s 2_ - Google Search

Impossible Queries?

In each of the searches above, you’re asking Google to find things that should have no matches. For example, this:

  • -s “s 2”

means you’re asking Google to find pages that do not have the letter S on them but which have the letter S in a phrase like “s 2.” It should be impossible to find a match for this. If there’s the phrase “s 2” on a page, then the letter S will also be on that page.

The use of numbers seems to be key to causing the anti-SafeSearch to kick in (SafeSearch is a feature from Google designed to filter out porn results). For example, a query like this:

  • -title title

comes up with a message that no results could be found, rather than a set of porn results.

It’s Not A Feature; It’s A Bug

Why is this happening? Google doesn’t know. Google software engineer Jeremy Hoffman commented in the Quora thread, saying it was a bug:

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. Thanks to the Quora community for bringing this to our attention.

Somehow, somewhere buried in all the code that Google uses to rank websites, these types of queries seem to be triggering results for sites that match adult content. No doubt the bug will be fixed shortly. In the meantime, for those who want that, enjoy Google XXX.

Related Articles


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.


About the author

Danny Sullivan
Contributor
Danny Sullivan was a journalist and analyst who covered the digital and search marketing space from 1996 through 2017. He was also a cofounder of Third Door Media, which publishes Search Engine Land and MarTech, and produces the SMX: Search Marketing Expo and MarTech events. He retired from journalism and Third Door Media in June 2017. You can learn more about him on his personal site & blog He can also be found on Facebook and Twitter.

Get the must-read newsletter for search marketers.