DEV Community

Cover image for Block NSFW images using AI
Navendu Pottekkat
Navendu Pottekkat

Posted on

Block NSFW images using AI

NSFW Filter is an open-source extension to block NSFW content from your browser.

You can download it from here: https://www.github.com/navendu-pottekkat/nsfw-filter

It uses state-of-the-art Machine Learning models to detect NSFW content to keep you safe.

Protect yourself at work and protect your kids at home from NSFW content with this awesome extension.

Contributions of any kind are welcome!

Top comments (11)

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Protect yourself at work

Chances are, if you're confronted with NSFW images at work, you're either doing something you shouldn't or you have some good work-related explanation why you're on a site that could happen.

protect your kids at home from NSFW content with this awesome extension

For that purpose it might be more effective to use a proxy on a central location so it can't just be disabled or uninstalled.

Collapse
 
pottekkat profile image
Navendu Pottekkat

Chances are NSFW content could popup on some unassuming places. I tried to find something that does this but when I could not find one, I went ahead and built one.

Collapse
 
grantdotdev profile image
Grant Riordan

As someone who has worked in safeguarding industry myself, there are many things to consider when developing this kinda thing , especially as a add on.

A) what is the purpose / usage of said plugin ? Is it to prevent kids from seeing indecent images, or is it to hinder them ?
Are you installing as a boss , parent or guardian. Will it be a forced install ? If forced install you need to make it so that it can't be disabled by the user.

B) how are you hiding the images. Is the framework doing it for you? Is it's simply setting display:none of something this is easily undoable via Dev tools etc

Collapse
 
pottekkat profile image
Navendu Pottekkat

It can be used for anything. Basically it checks if the images are NSFW and if they are, it hides them from the user. All the "safe" images are visible to the user

Collapse
 
grantdotdev profile image
Grant Riordan

But how are they hidden??

Thread Thread
 
pottekkat profile image
Navendu Pottekkat

They are hidden if they are found to be NSFW. Using CSS and DOM manipulation

Thread Thread
 
grantdotdev profile image
Grant Riordan

Ok so you could just inside them easily yourself. Not really protecting people, more putting a fuzzy film / blur effect on initial load

Thread Thread
 
pottekkat profile image
Navendu Pottekkat

It is for people who want to block the content. We do not want to force it on them. It is a tool for them to easily block NSFW content

Collapse
 
georgedoescode profile image
George Francis

Instantly thinks of hotdog / not hotdog from silicone valley

Collapse
 
pottekkat profile image
Navendu Pottekkat

I got that a lot!

Collapse
 
brogrammerben profile image
Ben

Is there a filter for non NSFW content?