Now it is easy to block spam in your site. There are many wordpress plugins available in wordpress plugin page to block bots from wordpress.
Basically many wordpress admins using akismet anti spam plugin to stop spam comments. But this is not works properly to block spam bots. You will get annoying registrations and comments in your blog posts.
In this tutorial am sharing some easy methods to stop spam users and spam comments from your wordpress site. Spam can damage your seo and lead to get some troubles in webmaster tools.
When i was a beginner, am getting lot of spam comments in my site. In this time am not using anti spam plugins and deleting comments everyday. But later am getting some issues in webmaster tools. So i decide to use some plugins to stop spam in my site.
Wordpress spam plugin doesn't provides complete security from bots. So am using some easy ways to stop spam from accessing my site. Here are the ways am using to block spam in my wordpress site. Use below tips and boost your wordpress quality.
Block Spam Bots In Wordpress Site :
As default wordpress offering easy way to block spam comments in your site. You can Simply change your wordpress comments settings in discussion section to block spam comments.
Login to your wordpress site wp-admin dashboard and click on settings. Navigate to Discussion Settings and make below changes. Do not approve comments automatically, Simply enable A comment is held for moderation.
Finally If you wish, You can disable comment for the posts which is posted 30 days before. Because spam bots only targets the high authority pages and once you get spam comment in your high authority post. Then all other bots will target to the page.
So you can close comments for articles older than 30 days. This will improve your spam fighter. But this is slightly bad for SEO.
Wordpress spam plugin :
Spam plugins are helps you to block all spam comments and spam registrations from your wordpress site automatically. Currently akismet anti spam plugin doesn't available for free, You need to buy packages to block spam.
But here is the best alternative wordpress zero spam plugin. This will protect your site from spam comments and spam users. It works perfectly to prevent spam from your site without doing anything manually.
Open wordpress plugins page and click On Add New button. Now search wordpress zero spam and activate the plugin. Then open zero spam settings and enable comment support and registration support.
Finally save changes and relax. You are now protected from spam comments and spam registrations. This plugin works on background and block all spam activity in your site and boost your blog performance.
You can also block some ip address to block comments from annoying users. No need to buy any packages and premium upgrades to use this plugin in your site.
Blocking Spam Comments Using .htaccess Root :
.htaccess helps the wordpress site to run and improves wordpress site security. In your wordpress site, enable Yoast SEO plugin to modify .htaccess file from your wordpress admin dashboard.
Otherwise you need to open your hosting control panel and find .htaccess file in the file manager section. This .htaccess file available in your hosting file manager public folder.
Open Yoast SEO and click on Tools section. Now open File Editor and find .htaccess section. Then add below line in your htaccess file.
# Block Spam Bots
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.website.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
Finally save the file and prevent spam comments in wordpress site. Before save the code in file, Repalce website.com with your domain. This line will block spam comments bots and spam in your comments section. Users can manually post comments in your article.
Change Login Path To Stop Spam Registration :
This is easy and safest way to block spam bots and hackers from accessing your login page. iThemes security is the most powerful security plugin for wordpress site with tons of features to secure your site from hackers.
In iThemes security plugin, You can block all spam ip address and change your login page and registration page to fool spam bots. Here are the features of iThemes Security wordpress plugin.
Here Navigate to advanced settings and find the option Hide Backend. This will provides the easy solution to customize your wordpress login page. You can change your wordpress login page url as anything you want.
Now change the login slug as per your wish and save the settings. This will modify your login page as your wish.
Finally you are stopped wordpress spam registrations. Spam bots will try to access your login page with the default wordpress login page. But you are changed your login page and blocked illegal access from bots.
This will also protect your site from hackers to brute force your wordpress site Login. This plugin has ip address blocker feature too.
So if you are getting any annoying spam comments from real users, Then you can block them using their ip address. Then they will not able to access your site.






No comments:
Post a Comment