Google Code To Fight Spam On Your WordPress Or BuddyPress Install
07.07.10 by Jerome in Tutorials
Spam has always been a problem for bloggers. Yesterday I found a new script by Google to help you fight spammers. The script is called Stop Spam Referer PHP Script. It’s very light weight and extremely easy to install (it took me 2 minutes to install).
Has anyone have been using this script? Are you happy with it? Please give any feedback in the comments section.
Step 1
Download the Stop Spam Referer PHP Script and upload it to the referer folder into the root of your website.
Step 2
Copy and paste the code below into your wp-load.php and upload it live.
/** Define BAD_REFERER */ define ( 'BAD_REFERER_ACTIVE', true); if ( is_file( @dirname(__FILE__).'/referer/bad_referer.php') ) if (is_file (@ dirname (__FILE__). '/referer/bad_referer.php')) include_once( @dirname(__FILE__).'/referer/bad_referer.php') ; include_once (@ dirname (__FILE__). '/referer/bad_referer.php');
Here some of the features:
- Stops bad referers ( domains list )
- Stops domains by keywords
- Bandwidth safe
- Spam protect for your website
- Referers custom Black List
- Referers custom White List
- Keywords White List
- IP block custom
- Light and fast PHP script (3.8 ko)
- No reduce performances
- No database required
- Secure PHP script
- Open Source PHP Script
- You can rename folder of SSR
- No .htacess file (low machine resources)
- 1787 domain names in blacklist ( and all sub domains )
- 96 keywords in blacklist ( for thousand domain names )







Lane Lester
07. Jul, 2010
I googled another blog that recommended this script, so I'm going to start using it… until someone says it's a horrible mistake.
I've quit using Akismet due to its deleting of innocent comments. So I'm beefing up other anti-spam measures.
Thanks for the tip.