Welcome, Guest!!
follow us on... rss

Author Topic: BotScout on WordPress  (Read 10859 times)

MysteryFCM

  • Moderator
  • Full Member
  • *****
  • Posts: 200
    • View Profile
    • I.T. Mate
BotScout on WordPress
« on: October 08, 2012, 12:44:47 PM »
For those wanting to run BotScout on WordPress installations, there's two choices available. You can either use a mod such as the Spambot Search Tool;

http://support.it-mate.co.uk/?mode=Products&p=spambotsearchtool

SBST WordPress Mod:
http://forum.hosts-file.net/viewtopic.php?f=69&t=1594
http://temerc.com/forums/viewtopic.php?f=79&t=6267

Or, you can use v1.5 of the BotScout General Use PHP Code;

http://temp.it-mate.co.uk/BotScout1.5.zip

Once downloaded (if using BotScout1.5.zip);

1. Open BotScout.php

1a. Change;


// for WordPress
//$apptype='WP';   

To this:

// for WordPress
$apptype='WP';

1b. Add your BotScout API key on line #103 (required if you have more than 20 attempts per day, but recommended anyway)

1c. Save BotScout.php

2. Upload BotScout.php to the folder containing WordPress. For example;

yourdomain/wordpress/BotScout.php

Quote
Note: You can use any path you wish, for example;

yourdomain/wordpress/BotScout/BotScout.php

For filtering comment posting

Open wp_comments-post.php

FIND:

Code: [Select]
$comment_author       = trim(strip_tags($_POST['author']));
$comment_author_email = trim($_POST['email']);
$comment_author_url   = trim($_POST['url']);
$comment_content      = trim($_POST['comment']);

ADD AFTER

Code: [Select]
////////////////////////////////////////////////////
// BotScout.com "BotBuster" check
include('/path/to/your/blog/BotScout.php');
////////////////////////////////////////////////////

Where /path/to/your/blog/ is the path you uploaded BotScout.php to in step 2

Finally, save wp_comments_post.php

For filtering registrations

Open wp-login.php

FIND:

Code: [Select]
// Check the username
ADD AFTER:

Code: [Select]
////////////////////////////////////////////////////
// BotScout.com "BotBuster" check
include('/path/to/your/blog/BotScout.php');
////////////////////////////////////////////////////

Where /path/to/your/blog/ is the path you uploaded BotScout.php to in step 2
« Last Edit: October 08, 2012, 12:47:50 PM by MysteryFCM »
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net