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.
Not a member yet? Click here to register.
Forgot Password?

Prevent Spam using StopForumSpam.com

Asked Modified Viewed 10,670 times
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
asked
Veteran Member

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 :
$this->_userEmail = (isset($_POST['user_email']) ? stripinput(trim(preg_replace("/ +/i", " ", $_POST['user_email']))) : "");

2. After this Line, Add the given below Code :
// 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
0 replies

7 posts

W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

I see you started the battle against spammers! ;)
Will try this one out.
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
answered
Veteran Member

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 ;)
0 replies
— 2 months later —
S
Septron
S
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

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

// 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
Edited by Septron on 17-10-2011 16:11,
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Haha, picture for bots :)
0 replies
N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

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
0 replies
— 4 years later —
B
balin
B
balin 10
Balin
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 9 threads in the forums
  • Answered 1 question
answered
Junior Member

What is the solution for V9?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

We use Tokens in PHPFusion 9, it is yet to show it´s efficiency but everything points in the direction that it will eliminate most automated spam.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 7 members

7 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
W
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
S
S
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 4 threads in the forums
B
B
balin 10
Balin
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 9 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet