Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Prevent Spam using StopForumSpam.com

Hello Guyz,

If you want to Prevent Spam Users to get Register on your Website using the StopForumSpam.com API, in version 7.02, then you can do the steps below :

This MOD was created for v7.01.03 by Tyger. Here is How you can do it for 7.02 :

Prevention Only :

1. Open includes/classes/UserFieldsInput.class.php and find this Line :
CodeDownload  
$this->_userEmail = (isset($_POST['user_email']) ? stripinput(trim(preg_replace("/ +/i", " ", $_POST['user_email']))) : "");


2. After this Line, Add the given below Code :
CodeDownload  
// Check E-Mail for Spammer from stopforumspam.com
$xml_string = file_get_contents('http://www.stopforumspam.com/api?email='.$this->_userEmail);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes')
{
   $this->_setError("user_email", "<span style='color: #ff0000;'><b>You are a Reported Spammer on StopForumSpam.com ! So just stay away from my website...</b><img src='".IMAGES."smiley/angry.gif' alt='' /></span>");
}



Save ! You are Done..... :)

Testing : To Test it if it is working or not, Go to stopforumspam.com and Choose any Banned Spammer E-Mail and try to register !!!
OR You can also Try it on my Website : http://ankurthakur.in/register.php
I see you started the battle against spammers! ;)
Will try this one out.

Quote

wanabo wrote:

I see you started the battle against spammers! ;)
Will try this one out.


Yeah :D Thanks and let us know if it gives no problem ;)
Hello,

well that's some really useful
I've allowed the fun times and I even made &#8203;&#8203;a matching graphic
and the clickable link

CodeDownload  
// Check E-Mail for Spammer from stopforumspam.com
$xml_string = file_get_contents('http://www.stopforumspam.com/api?email='.$this->_userEmail);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes')
{
   $this->_setError("user_email", "<span style='color: #ff0000;'><b>You are a Reported Spammer on <a href='http://www.stopforumspam.com/' target='_blank'>StopForumSpam.com</a>! So just stay away from my website...</b><img src='".IMAGES."smiley/angry.gif' alt='' /><br /><center><img src='".BASEDIR."images/botspamstop.png' /></center></span>");
}



this picture should be easily uploaded to Images:
www.septron.de/images/botspamstop.png


Here is the example:
www.septron.de/images/zeigekram/botspamstopbeispiel.png

sorry for my bad english :|

Have fun greeting Septron
Haha, picture for bots :)
Bot Abuse!!

But just for clarification, this script seems that it can be greatly abused.

For example, you can visit there website and "Add a Spammer".

All seems good at first until you think about the what ifs....

Such as, what if someone decides to place my IP, Username, Email, etc. there who doesn't like me.

It would in effect, stop me from joining your website if I wanted to and blacklist me across all other sites.

:o

------------------------

Edit: Yes, I could just change my email from using your script to bypass it, but hey, that defeats the purpose! lol
What is the solution for V9?
We use Tokens in PHP-Fusion 9, it is yet to show it´s efficiency but everything points in the direction that it will eliminate most automated spam.
Thread Information
Author
Replies
8 posts
Views
9,339 times
Last Post
Last updated on 3 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Wanabo, NetriX, PolarFox, Ankur, Septron, balin