Log in

View Full Version : stopforumspam - only email check no ip check.


Ghostt
11-28-2011, 12:27 AM
Hello,
The following problem: Many user on our site use proxy. and they dont know why they get blocked from this pluggin. Its because the IPs from proxys are blacklisted.
and its not make much sense to block IPs because a simple reconnect change it!

Can you please help me to adjust this plugin code to work only with email check not the ip check?
ive tried to delete some parts out but im PHP noob so it didnt work.

i appreciate your help!

if (function_exists("file_get_contents")) {
if (stristr(file_get_contents("http://www.stopforumspam.com/api?ip=" .$_SERVER['REMOTE_ADDR']), "yes")) {
eval(standard_error(fetch_error('spammer_ip')));
}

if (stristr(file_get_contents("http://www.stopforumspam.com/api?email=" .$vbulletin->GPC['email']), "yes")) {
eval(standard_error(fetch_error('spammer_email'))) ;
}
} else {
if (function_exists("curl_init")) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, "http://www.stopforumspam.com/api?ip=" .$_SERVER['REMOTE_ADDR']);

if (stristr(curl_exec($ch), "yes")) {
eval(standard_error(fetch_error('spammer_ip')));
}

curl_setopt($ch, CURLOPT_URL, "http://www.stopforumspam.com/api?email=" .$vbulletin->GPC['email']);

if (stristr(curl_exec($ch), "yes")) {
eval(standard_error(fetch_error('spammer_email'))) ;
}

curl_close($ch);
}
}

Max Taxable
11-28-2011, 12:28 AM
My humble suggestion? Ditch that and get a bot stopper that really does work and is ingenious:

https://vborg.vbsupport.ru/showthread.php?t=135094

Ghostt
11-28-2011, 12:34 AM
this pluggin seems to be also good, but
with my method i have allready 0% spam! and my method blocks also human spammers not only bots

i have also a custom notice that makes it very good.

so would anyone spend 1 min to help me please?

--------------- Added 1322502026 at 1322502026 ---------------

no ideas```?

kpmedia
12-05-2011, 01:24 PM
To be honest, I don't mind blocking proxies.
You may have to seek an alternative to SFS, as the system was design with IP and email in mind.

treasureman
12-07-2011, 08:12 PM
With VBstopforumspam you can choose whether or not to use IP blocking via the control panel. Also you can choose whether or not to use email blocking and user name blocking.

I use IP blocking and email blocking, but not user name blocking as that produced to many false positives.

I get almost zero spam registrations. I also use the !NoSpam registration mod instead of the captcha.