Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - Blocking of uploaded adult images

We have a setup a product management system where the head of the product development can upload pictures of products and those pictures will instantly show up on our website.

Last week, when one person left the job, he uploaded a bunch of XXX-Rated pictures and things showed up immediately on the website. Luckily, we noticed and removed them in matter of a few minutes. Still, that time was enough to shock some of our customers.

Here is my question: How to effectively analyse and block such images from being uploaded? Can this be done using any library in PHP? Is it possible with PHP in the first place?

Any help would be much appreciated.

Edit 1:

After some digging, I found this:

http://pikture.logikit.net/ (Dead link)

Has anyone used it before, or any opinion about it?

like image 634
Nirmal Avatar asked Jan 06 '10 03:01

Nirmal


2 Answers

Implement image premoderation. If there's a single person uploading those (like you imply), shouldn't be too hard for someone else to take a brief look and click "Approve" on each.

And it's way cheaper, and more reliable, than using any library. You cannot formalize "adult".

like image 115
Seva Alekseyev Avatar answered Sep 23 '22 02:09

Seva Alekseyev


It's a difficult problem in any language, the image processing problem is extremely hard.

There is some research on the subject:

  • Appearance-Based Nude Image Detection
  • SNIF: a simple nude image finder
  • Filtering Objectionable Image Based on Image Content
like image 37
Mark Elliot Avatar answered Sep 24 '22 02:09

Mark Elliot