# How does google safesearch work?

**URL:** <https://boards.straightdope.com/t/how-does-google-safesearch-work/498445>\
**Category:** Factual Questions\
**Created:** [June 2, 2009, 2:14am UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445 "2009-06-02T02:14:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SenorBeef](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senorbeef/32/2220_2.png) [@SenorBeef](https://boards.straightdope.com/u/SenorBeef)\
**Post date:** [June 2, 2009, 2:14am UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/1 "2009-06-02T02:14:08Z")

</div>

Google safesearch basically removes NSFW images from an image search. It seems to work extremely well. How do they actually go about doing this?

I assume the best way is to get a large number of people marking images in some way as they come across them, possibly as some sort of browser toolbar. There are so many images out there that it seems cost inefficient for google to have a large staff dedicated to it.

Or is it done heuristically? Does goggle have nipple detector technology? Do they look at the context of the page to determine likely the content of the image? It seems like a heuristic method would have a significant rate of failure, but I can’t recall ever seeing a NSFW pic with safesearch turned on.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [June 2, 2009, 2:26am UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/2 "2009-06-02T02:26:57Z")

</div>

It is done heuristically. The primary criteria for excluding images are context and the color content.

Images which appear on pages with lots of text talking about what a filthy cocksucking whore you’re looking at are good candidates. Other good candidates are images with a large percentage of fleshtone colors. Combining those two into some sort of scoring system with a tweakable threshold does a pretty good job eliminating most NSFW images.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [June 2, 2009, 2:59am UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/3 "2009-06-02T02:59:08Z")

</div>

Of course, Google needs to take context into account to do image searching in the first place. If an image _would_ be returned in searches for sex-related terms, then it should probably be excluded from a Safe Search.

---

<div class="post-metadata">

**Author:** ![CaveMike](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cavemike/32/16379_2.png) [@CaveMike](https://boards.straightdope.com/u/CaveMike)\
**Post date:** [June 2, 2009, 4:29am UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/4 "2009-06-02T04:29:56Z")

</div>

> [@friedo](#):
>
> It is done heuristically. The primary criteria for excluding images are context and the color content.

Do you know for sure that it is looking at the images? I had assumed it was implemented based primarily on URL and secondarily on keywords. It seems redundant to process the images after that.

---

<div class="post-metadata">

**Author:** ![Tim\_R.Mortiss](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim_r.mortiss/32/142_2.png) [@Tim\_R.Mortiss](https://boards.straightdope.com/u/Tim_R.Mortiss)\
**Post date:** [June 2, 2009, 4:38pm UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/5 "2009-06-02T16:38:45Z")

</div>

“One experiment is worth a thousand expert opinions.” (Thomas Edison) Someone should take a scathingly pornographic photo, tint it blue in Photoshop, and post it on a page with lots of text about angels and bunnies and cupcakes. Then see if Google can cough it up!..TRM

---

<div class="post-metadata">

**Author:** ![MEBuckner](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mebuckner/32/2896_2.png) [@MEBuckner](https://boards.straightdope.com/u/MEBuckner)\
**Post date:** [June 2, 2009, 5:44pm UTC](https://boards.straightdope.com/t/how-does-google-safesearch-work/498445/6 "2009-06-02T17:44:49Z")

</div>

> [@friedo](#):
>
> It is done heuristically.

Which is pretty disappointing. I mean, that would be a totally sweet job:

“Safe…Safe…Ehhh–Safe-ish. Not really showing anything…Safe…Oh, yeah! Mmmm-mmm–_Totally_ not safe. Oh yeahhh–OK. OK. Back to work…Safe…Safe…Safe…Oh my God–look at the SIZE of those things! Not even REMOTELY safe!”

Although I suppose you’d have to screen some pretty :eek:-inducing stuff.
