Title: error enabling spambot blocking
Last modified: August 21, 2016

---

# error enabling spambot blocking

 *  Resolved [crashtest](https://wordpress.org/support/users/crashtest/)
 * (@crashtest)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-enabling-spambot-blocking/)
 * with this option enabled i had “error establishing database connection” if i 
   digit the site’s URL without www
 * i found a solution adding to .htaccess this code:
 *     ```
       RewriteCond %{HTTP_HOST} ^example.com$ [NC]
       RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
       ```
   
 * but, as i don’t know if this is a good thing, i deleted this code then and disabled
   the spambot blocking option
 * [https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-enabling-spambot-blocking/#post-5029963)
 * Hi crashtest can you carry out the following test. Disable all your plugins except
   this plugin. Enable Block Spambots From Posting Comments:again. Do you still 
   get an error? If you don’t then you know that it was one of the plugins you disabled
   that is causing the conflict.
 * If you still receive the error, can you change your theme to a WordPress default
   theme like Twenty Thirteen?
 * Thank you
 *  Thread Starter [crashtest](https://wordpress.org/support/users/crashtest/)
 * (@crashtest)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-enabling-spambot-blocking/#post-5030073)
 * hi,
 * i’d like to help you but i’m just coming out from a disaster in that site (site’s
   folder completely lost because of an error in domain configuration…).
 * Site is online again now after some days it was closed and in maintenance, so
   i can’t now close it again to do those test.
 * A question: having Akismet up and running, do you think i need also to enable
   that option in your plugin?
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-enabling-spambot-blocking/#post-5030080)
 * Are you still having problems enabling Spambot Blocking?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘error enabling spambot blocking’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-enabling-spambot-blocking/#post-5030080)
 * Status: resolved