Logo

Stop Forum Spam

Forum



#1 2008-01-12 10:39 am

yannick
Member
From: Netherlands
Registered: 2008-01-12
Posts: 15

silly me

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 big_smile

Offline

 

#2 2008-01-12 10:40 am

Russ
Administrator
Registered: 2007-11-28
Posts: 132

Re: silly me

You're removed now...that was my fault.

Offline

 

#3 2008-01-12 10:40 am

yannick
Member
From: Netherlands
Registered: 2008-01-12
Posts: 15

Re: silly me

thanks big_smile

=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 wink

Last edited by yannick (2008-01-12 10:44 am)

Offline

 

#4 2008-01-12 3:17 pm

Smurf_Minions
Member
From: Weerselo
Registered: 2008-01-12
Posts: 3
Website

Re: silly me

well, i think i should contribute something too then smile
with the use of the get_url_contents function you can use this to check if it is an spambot:

Code:

//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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson



Donate Valid XHTML 1.0 Transitional RSS 2.0 Feed