Topic: Extension Stopforumspam Query Beta Working!
Working extension!
http://punbb.informer.com/forums/topic/ … -antispam/
Anyway... I was checking the function Slavok advised, and somehow it seems we've got working (little bit rewriten) extension now
Check it out (.zip)
Backup Version of Stopforumspam:
http://www.mediafire.com/file/vmsfi43m7 … _0.9.7.zip
**********************************
For get all my rambling below:
I'm trying to get this to work in my register.php
It's for blocking IPs that are known to be spammers according to stopforumspam.com
In my hosts setup file_get_contents are blocked
Warning: file_get_contents() [function.file-get-contents.php]: URL file-access is disabled in the server configuration
... so I need to rewrite the first block of code to something like? the second block?!
$urlchecker = file_get_contents('http://www.stopforumspam.com/api?ip='.get_remote_address());
if (strpos($urlchecker, 'yes'))
die($lang_common['No permission']);
$urlchecker = 'http://www.stopforumspam.com/api?ip='.get_remote_address();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $urlchecker);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$urlchecker_response = curl_exec($ch);
curl_close ($ch);
if $urlchecker = 'yes'
die ($lang_common['No permission']);