Stop Trackback Spam from WordPress

If you have a WordPress blog site and there are lots of posts inside in your blog then you may face some problem about  WordPress trackback related spam. Because WordPress has the ability to receive and send pings/trackbacks from and to other sites.

There are many plugins around us to stop this trackback spam but Wodpress has their own way to stop this. There are two steps to stop Trackback Spam completely from your site.

Please follow the steps:

  • Login to your WordPress blog.
  • Go to Settings-> Discussion and then uncheck the box which says :”Allow link notifications from other blogs (pingbacks and trackbacks) ” . This won’t allow trackbacks in the new posts.

uncheck-trackbacks

But all of your older posts still have the problem and people can spam your blog there. To disable trackback in older posts you can go to each and every post of yours and disable them ,but if you have quite a big blog like then there is a high chance that you are going to have some problems editing each and every posts. Here’s a simple solution on how it can be done in just one click.

  • Log in to your cpanel and go to phpMyadmin . Open the database of your blog and then run this query on the SQL tab :
        UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
	UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'page';

Here, I have assumed that you are using the database prefix with ‘wp_’ for your wordpress database and if you are using any other prefix like sm_ ,then you should replace wp_ with sm_ .

The above query will help you in disabling trackbacks completely and from now on you don’t have to worry about trackback spam. So, enjoy and chill with wordpress blogging.

This post has already been read 13782 times!

Mehedi Hasan

Cool WordPress Developer having much agile experience to develop any kind of WordPress sites & plugins. Also good in troubleshooting, fixing & making any kind of tweaks for WP site.

More Posts

Mehedi Hasan

Cool WordPress Developer having much agile experience to develop any kind of WordPress sites & plugins. Also good in troubleshooting, fixing & making any kind of tweaks for WP site.

6 thoughts on “Stop Trackback Spam from WordPress

  • March 21, 2014 at 7:54 pm
    Permalink

    That’s cool. Very simple but had blind to know it. Thanks man for easy solution. Keep it up man.

  • July 15, 2014 at 9:58 am
    Permalink

    I see your articles those are really helpful for every wordpress developer. Please spend some time to write these kind of article for us to get some tricks & knowledge for our WordPress site. Thanks

  • September 29, 2014 at 8:29 am
    Permalink

    Sounds cool man. You are really sort out the point to get the specific requirements. I’m loving your articles 🙂

  • Pingback:instagramfollowersfreequick.wordpress.com

  • October 14, 2014 at 11:57 am
    Permalink

    This really helps.. Thanks for posting to sort out this problem.

  • November 8, 2014 at 1:01 am
    Permalink

    Stop Trackback Spam from WordPress is just helped to sort our one issue which was really helped. Go ahead Mehedi !!!

Comments are closed.