I found an interesting and useful class file in phpclasses.org, that helps to detect image nudity based on skin pixel score developed by Bakr Alsharif from Egypt. I had integrated this with my previous tutorial Ajax image upload with Jquery and PHP, sure this code helps you to block adult or nudity images.
![Block Uploads of Adult or Nude Images using PHP.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN63HR1BtBATWDoCO5aUTMEflgXApCLfUFgQQ35wF-DMKO3Sy_hRm2vJpEgL2CSt_NSl__nbdvL-bONJZA8YZfohJY3Yz08ll09NvNtw5xe2JDg0I602EsKVacSzebhCfZCnxQy7fpraAW/s550/blocking.jpg)
Read more »