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.


  1. Thank you very much for the post!
    It just saved me from spammers through the pingback service.

  2. Thanks, exactly what I was looking for right now.

  3. 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?

  4. Thanks.. Just saved me some time.

  5. 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.

  6. 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?

  7. 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.


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

Your email address will not be published. Required fields are marked *