PHP - 阻止上传的成人图像 [英] PHP - Blocking of uploaded adult images

查看:149
本文介绍了PHP - 阻止上传的成人图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们设置了一个产品管理系统,产品开发负责人可以上传产品图片,这些图片会立即显示在我们的网站上。

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.

最后一周,当一个人离开工作时,他上传了一堆XXX评级的图片,并立即在网站上显示。幸运的是,我们注意到并在几分钟内删除了它们。尽管如此,这段时间足以令我们的一些客户感到震惊。

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.

这是我的问题:如何有效地分析和阻止这些图像上传?可以使用PHP中的任何库来完成吗?是否有可能首先使用PHP?

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.

经过一番挖掘,我发现了这个:

After some digging, I found this:

http://pikture.logikit.net/ (死链接)

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

之前有没有人使用过它,或者有任何意见?

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

推荐答案

实施图像预制。如果有一个人上传这些内容(就像你暗示的那样),对其他人来说不应该太难看一看,并且点击每个人的批准。

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".

这篇关于PHP - 阻止上传的成人图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆