admin管理员组

文章数量:1323157

What I was trying to do was have users type in their favorite sites in a form and submit it onto their profile

What I wanted to ban was pornographic sites, but since there are most likely thousands of those sites out there, what is the best way of banning them?

My first option was using javascript like this one

var bad_sites_arr=new Array("bad","adult");

but if I did this, I would have to type every single site and put them in quotes separated by a space and ma. This would be tedious and very time-consuming but also very effective.

My question was, is there another way of banning adult sites?

What I was trying to do was have users type in their favorite sites in a form and submit it onto their profile

What I wanted to ban was pornographic sites, but since there are most likely thousands of those sites out there, what is the best way of banning them?

My first option was using javascript like this one

var bad_sites_arr=new Array("bad.","adult.");

but if I did this, I would have to type every single site and put them in quotes separated by a space and ma. This would be tedious and very time-consuming but also very effective.

My question was, is there another way of banning adult sites?

Share edited Jul 18, 2011 at 23:58 No Results Found 103k38 gold badges198 silver badges231 bronze badges asked Jul 18, 2011 at 23:51 capernicuzzcapernicuzz 771 silver badge7 bronze badges 3
  • This would be totally ineffective. New adult sites are created constantly. It would be more than a full time job to keep adding URLs this way. – Merlyn Morgan-Graham Commented Jul 19, 2011 at 0:04
  • I didn't think of that. So its best not to bother probably lol – capernicuzz Commented Jul 19, 2011 at 0:05
  • There are other methods (e.g. implementing terms-of-service descriptions and having a manual reporting mechanism). Usually a bination of methods is best. Each one will erode the problem a little further, but beware of diminishing returns. This is very similar to the level of piracy or security countermeasures you employ - too much will annoy customers/users, but too little is just begging for problems. If you want mechanical removal, you should try to implement smarter filters, in addition to, or instead of a simple black list. – Merlyn Morgan-Graham Commented Jul 19, 2011 at 0:16
Add a ment  | 

3 Answers 3

Reset to default 6
 is there another way of banning adult sites?

You might want to implement a simple "Report this link" type of moderation. That way, you have the users themselves policing other users. You only need to get involved if a link is reported.

You could even have a link automatically removed if it is reported by 3 or more people.

You could subscribe to a filtering service, require moderation of unknown sites, or just give up and ban folks who wind up abusing it. Whatever you do, JavaScript isn't the way to do it, as that's under control of the user.

http://akismet./

Akismet filters out your ment and track-back spam for you, so you can focus on more important things.

This will try to filter out all spam instead of just porn. You can make this even stronger by having user first having to pass captcha. If you don't like this you could reputation in stead just like stackoverflow. does. To have reputation in place you first need to authenticate users(I suggest OpenID).

P.S: banning all spam is almost impossible(reputation will get you a long way I think). You could moderate posts which look flakky first, but then you probably also will have some false positive or some porn links will get trough probably.

本文标签: phpFilter URLs of websites with adult contentStack Overflow