How To Disable Pingbacks And Trackbacks On Your WordPress Blog

Are you bothered by the pingbacks and trackbacks some spam sites post on one of your blog entries? It’s good as far as they are not being posted by spam sites and is a legitimate way to quote mentions of your post by other sources. However now-a-days it’s mostly the spam sites trying to steal your visitors by posting pingbacks and trackbacks. Here are two things you need to do to disable trackbacks and pingbacks on your wordpress blog.

  1. Disable pingbacks and trackbacks for new posts:

    In your wordpress Admin panel go to Settings > Discussions and uncheck the box for “Allow link notifications from other blogs (pingbacks and trackbacks.)”. This will make sure that all newer posts have the pingbacks and trackbacks disabled. Remember this is only for the posts that you’ll publish going forward. The next step disables them for the past posts.

  2. Use SQL to close the pingbacks and trackbacks:

    If you are just starting out you can skip this step. All your wordpress data resides in a database. You’ll need to open the database using phpMyAdmin etc. (refere to your webhosting documentation) and run the following SQL query —

    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';

    The first one disables them for all published posts and the second one disables them for all pages.

To disable or enable pingbacks for specific pages or posts, go to the post editor and under the post check or uncheck the box for “Allow trackbacks and pingbacks on this page” under Discussion.

 

Join 37,807 others and get free tutorials & tips on design & development using Wordpress on Thesis & Genesis!

Need help with Wordpress, Thesis or Genesis?

Are you a designer or a developer looking for a hand with Wordpress, Thesis or Genesis? Or perhaps want to save time with a project? Get in touch and let's get the ball rolling! Check out our Thesis development, PSD to Thesis & other services.

Comments on "How To Disable Pingbacks And Trackbacks On Your WordPress Blog"

  1. says

    What if I want to write a post in which I link to someone’s blog but do not want that person notified by pingback? Just for that post I mean. Any ideas?

  2. says

    If you have to edit the database to change something like this you should be using a real CMS. WordPress is great for basic blogging. A CMS it is not.

  3. says

    Hey! if i disallow the pingback in my wordpress than in future if i want to link one of my post to another than wouldn’t that be affected when pingbacks are disabled?

  4. says

    Thanks for this. I’m getting tired of someone pinging back to all my posts from the same url, when I try to visit the url I get an error message. Anyway hopefully this will sort it.

To post a comment…

Connect with:

Comment on How To Disable Pingbacks And Trackbacks On Your WordPress Blog