You are not logged in.

#126 2009-01-23 3:54 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

Josh will email the API key to you smile


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#127 2009-01-23 5:29 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Thanks! smile


Funiest jokes and pics

Offline

#128 2009-01-25 1:06 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Maybe must wait to 22 century...
How can I stop SpamBot Search Tool to ask for fSpamList API key?


Funiest jokes and pics

Offline

#129 2009-01-25 3:34 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

If the key doesn't exist, it won't process any submissions wink

I'm surprised Josh hasn't gotten back to you on his, try sending him a PM (I'll also fire him an e-mail).


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#130 2009-01-25 4:22 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

I doesn't find out his profile here. sad

If the key doesn't exist, it won't process any submissions

I know it but I'm tired to wait.


Funiest jokes and pics

Offline

#131 2009-01-25 5:58 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#132 2009-01-26 8:56 am

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Thanks! I have received my API right now. smile


Funiest jokes and pics

Offline

#133 2009-01-26 9:04 am

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

Nice one smile


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#134 2009-01-29 1:26 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

29-01-2009 v0.15

+ View spammers you've asked the filter to log to text file
+ View spammers you've had your mod email to you (assumes you've used the same email format as outlined on the TeMerc forums)
* Fixed spammers particulars not being logged to text file properly
- Ditched "Full" package in favour of the Simple (less to update and simple is what most want)


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#135 2009-01-30 2:10 am

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

30-01-2009 v0.16

+ Now also checks BotScout (botscout.com, API key not required but is recommended as they only allow limited queries without one)
+ Text files now also created when using check_spammers_plain.php (if enabled)

More info + Download
http://support.it-mate.co.uk/?mode=Prod … searchtool


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#136 2009-01-30 7:36 am

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

And what about full version with separate check_spammers and private folders? It must be removed or what?


Funiest jokes and pics

Offline

#137 2009-01-30 1:37 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

You can either modify the paths in the current one, to suit your setup (then move the files to the appropriate folder), or over-write the old "full" package (obviously, ensure you make a note of any keys/paths in the config.php file first).


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#138 2009-01-30 2:46 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Thanks! I have updated but again have a problem...
I try 3 times to get API from BotScout and 3 times I get error:

There was an error creating your API Key entry.

NOTE: Failure to create an API Key may be due to duplicate web site or email addresses. An API Key may be used across an entire domain, so you don't need to create multiple API Keys to use the bot testing code on different pages of your site.

If this error persists, please contact the Administrators and inform them of this problem.

What is your advice? sad

Please give us full install text. Every time I have problems with cURL. My server's cURL version have security issues and I don't want to risk. I must comment cURL lines but in all versions you make differences and I must guess... I have  more work without it...

Now I must downgrade to v.0.14 again.

Last edited by diabolic.bg (2009-01-30 3:03 pm)


Funiest jokes and pics

Offline

#139 2009-01-30 5:00 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

With respect to the BotScout API, please post in their forums and one of the BS guys will sort it out for you smile

http://botscout.com/forum

The cURL check is done in check_spammers.php and check_spammers_plain.php in the function getURL (custom function to determine the method of obtaining the query URL's). This check is ONLY present in this function, and this function ONLY exisrts in check_spammers.php and check_spammers_plain.php

function getURL($sURL){
    if(function_exists('file_get_contents')){
        // Use file_get_contents
        $sURLTemp = file_get_contents($sURL);
    }else{
        // Use cURL (if available)
        if(curl_version() !=='Array'){
            $curl = curl_init();
            curl_setopt($curl, CURLOPT_URL, $sURL);
            curl_setopt($curl, CURLOPT_VERBOSE, 1);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($curl, CURLOPT_HEADER, 0);
            curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
            $sURLTemp = curl_exec($curl);
            curl_close($curl);
        }else{
            echo 'NO_CURL';
        }
    }
    return $sURLTemp;
}

Other than their paths, the content (including functions) was identical in both the Full and Simple versions.

The paths for the full versions are;

/htdocs/check_spammers_plain.php
/htdocs/index.php

All other files go in the /private folder. You then open the files and change ALL include() paths from;

include("./{FILE}");

To;

include("../private/{FILE}");

If it will be easier for you, I can package a full version for you?


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#140 2009-01-30 5:20 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

I doesn't have problems with that all files are in one folders. But problems with cURL are serious. In the previous versions to 0.14 I only commented the lines in index.php

//                if(curl_version() !=='Array' && !function_exists('file_get_contents')){
//                    echo '<span class="error">'.$nocurlorfgc.'</span>';
//                }else{
//                    if(file_exists('..\private\check_spammers.php')){
//                        include("..\private\check_spammers.php");
//                    }else{
//                        echo 'check_spammers.php is missing';
//                    }
//                }

and all was OK. Do you mean that now I must comment lines in two files?
If in next version must correct 3 files I doesn't upgrade more.  Instead of simplify install you make it complicated.


Funiest jokes and pics

Offline

#141 2009-01-30 5:24 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

Sorry, I misunderstood. No, that code is still only in index.php. Just change;

if(curl_version() !=='Array' && !function_exists('file_get_contents')){
    echo '<span class="error">'.$nocurlorfgc.'</span>';
}else{
    if(file_exists('./check_spammers.php')){
        include("./check_spammers.php");
    }else{
        echo 'check_spammers.php is missing';
    }
}

To;

//if(curl_version() !=='Array' && !function_exists('file_get_contents')){
//    echo '<span class="error">'.$nocurlorfgc.'</span>';
//}else{
    if(file_exists('./check_spammers.php')){
        include("./check_spammers.php");
    }else{
        echo 'check_spammers.php is missing';
    }
//}

The additional code in index.php is for the new viewing features.

Last edited by MysteryFCM (2009-01-30 5:25 pm)


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#142 2009-01-30 5:37 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Your code causes error: ...htdocs\check_spammers\index.php on line 236

236             }else{
                echo '<span class="error">'.$phpver_error.'</span>';
            }
        ?>
    </td>


Funiest jokes and pics

Offline

#143 2009-01-30 5:40 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

The new (commented) code above?


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#144 2009-01-30 5:48 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

MysteryFCM wrote:

The new (commented) code above?

Yes, I remake it as follow and now works:

// PHP5 is required for this to work
            If(!phpversion() < 5){
            //    if($p_type ==''){
                if(function_exists('file_get_contents')){
                //if(curl_version() !=='Array' && !function_exists('file_get_contents')){
                //        echo '<span class="error">'.$nocurlorfgc.'</span>';
                //}else{
                        if(file_exists('./check_spammers.php')){
                        include("./check_spammers.php");
                        }else{
                        echo 'check_spammers.php is missing';
                        }
                //}
                }else{
                    echo '<span class="main">'.$view_main.'</span><br /><br />';
                    if($p_type == 'view'){
                        include("./view_spammers.php");
                    }else{
                        include("./view_spammers_mail.php");
                    }
                }
            }else{
                echo '<span class="error">'.$phpver_error.'</span>';
            }
        ?>
    </td>
</tr>

But I think you must think out for more flexible system - every server is different and we must adapt your mod easy.

Now I must get BotScout API.
See you later!

Last edited by diabolic.bg (2009-01-30 5:53 pm)


Funiest jokes and pics

Offline

#145 2009-01-30 7:01 pm

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

I'll see about re-writing it smile (though it should've passed over the functions if they didn't exist or weren't enabled)


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#146 2009-01-30 7:06 pm

diabolic.bg
Member
From: Bulgaria, Eastern Europe
Registered: 2008-11-03
Posts: 589
Website

Re: Spambot detector (with the use of this API)

Thanks, I will hope! smile


Funiest jokes and pics

Offline

#147 2009-01-31 12:19 am

kimsland
Member
Registered: 2009-01-30
Posts: 4

Re: Spambot detector (with the use of this API)

Hi MysteryFCM

I like your Code, but can you make this into a standalone exe (using something like AutoIT program?

It would be ideal

Other than "StopForumSpam" (ie here) I am now using: http://fspamlist.com/checkspammers/
to originally check Usernames and emails and IPs, that may be Spammers

Ideally a Standalone exe, would be ideal. Obviously requiring Internet access to search, but ideally if you had a regular updated Spammer list to download (ie offline searching) That would be excellent. smile

Offline

#148 2009-01-31 6:05 am

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

I'll work on doing a standalone version for a future version smile


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#149 2009-02-04 4:49 am

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

Standalone version is now ready for beta testing if anyone fancies it? (still obviously requires an internet connection)


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

#150 2009-02-06 3:45 am

MysteryFCM
Member
From: Tyneside, UK
Registered: 2008-01-16
Posts: 606
Website

Re: Spambot detector (with the use of this API)

Version: 0.17

* Bug with getURL function in check_spammers_plain.php
Notes:

Thanks to Mike at Bot Scout for letting me know yikes)

Ref:
http://hphosts.blogspot.com/2009/02/spa … -v017.html


Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Offline

Board footer

Powered by FluxBB

Close
Close