New
Clarifai is recognized as a Leader in The Forrester Wave™: Computer Vision Tools, Q1 2024
May 24, 2017

Clarifai Featured Hack: Use NSFW Blocker to Protect Your Eyes From the Internet

Table of Contents:

The internet can be a scary place lurking with things you can’t unsee. NSFW (Not Safe for Work) Blocker is a Chrome extension that uses Clarifai’s NSFW recognition model to block images that contain unwanted nudity.

Have you ever Googled something only to be rewarded with unwanted and irrelevant content? Perhaps with some genitalia involved? Don’t worry, you’re not the only person to innocently search for “cream pie” without including “recipe” at the end (pro tip: don’t do it). NSFW Blocker is a Chrome extension that will warn you of unwanted nudity from your browser, blocking the offending image and giving you the option to click to proceed:

nsfwblock


WHY WE ❤ IT
Any app that helps us avoid a full frontal assault on the eyes is a good app! Check out Clarifai’s NSFW model to see how the technology works, and visit the NSFW Blocker GitHub repo to learn more about the hack.


HOW YOU DO IT
We caught up with Kaizhao Liang to talk about the inspiration for NSFW Blocker.


Clarifai: What inspired your idea for NSFW Blocker?
Kaizhao: When we were brainstorming ideas, we found out there was a NSFW model already, so we decided to use that model to do something.


How did you build the app?
We use Python for the backend and Javascript for the front end.


What was the best part about working with the Clarifai API?
We used the Clarifai API and trained it with hundreds of online pictures to give us an accurate representation of which pictures are NSFW and which pictures are not.

Thanks for sharing, Kaizhao!
To learn more, check out our documentation and sign-up for a free Clarifai account to start using our API – all it takes is three lines of code to get up and running! We’re super excited to share all the cool things built by our developer community, so don’t forget to tweet @Clarifai to show us your apps.
And give Kaizhao some props in the comments below. Until next time!