You are not logged in.
me and smurf registraded and were marked as spammer, luckely some very kind mod made us members. However our names still remain in the list on the main page.
If we could be removed that would be awesome ![]()
Offline
You're removed now...that was my fault.
Offline
thanks ![]()
=EDIT=
To compenste I would like to contribute a function I found on the interweb. It's a way to get content from an external webpage into a variable, and thus so can be used in combination with the api found here.
The original source was found in the url of the @copyright, http://www.howtogeek.com/howto/programm … -variable/
/**
* Get the content of an URL
*
* @copyright http://www.howtogeek.com/howto/programm … -variable/
* @param string $url
* @return string $content
*/
function get_url_contents($url) {
$crl = curl_init();
$timeout = 5;
curl_setopt($crl, CURLOPT_URL, $url);
curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
$ret = curl_exec($crl);
curl_close($crl);
return $ret;
}
basicly URL in, content out ![]()
Last edited by yannick (2008-01-12 10:44 am)
Offline
well, i think i should contribute something too then ![]()
with the use of the get_url_contents function you can use this to check if it is an spambot:
//function to chek the registar is an spambot, if it is the result = true else it is false
function checkSpambots($mail,$ip){
//check the email adress
$xml_string = getUrlContents('http://www.stopforumspam.com/api?email='.$mail);
$xml = new SimpleXMLElement($xml_string);
$spambot = false;
if($xml->appears == 'yes'){
$spambot = true;
}elseif($spambot != true){
//check the ip adress
$xml_string = getUrlContents('http://www.stopforumspam.com/api?ip='.$ip);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes'){
$spambot = true;
}
//fill in some big domains to be blocked, you can fill in as much as you want.
}elseif(ereg('mail.ru',$mail) == 1 || ereg('bigmir.net',$mail) == 1){
$spambot = true;
}
return $spambot;
}Last edited by Smurf_Minions (2008-01-12 3:17 pm)
Offline