How To Disable Pingbacks And Trackbacks On Your WordPress Blog

February 4, 2010

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.

{ 9 comments on How To Disable Pingbacks And Trackbacks On Your WordPress Blog… read them below or add one }

Rajiv February 18, 2010 at 1:47 am

Thanks for the post.
It was really helpful.

Ce Mai Vrei July 18, 2010 at 11:22 am

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

Brandon @ The Tickets Guide November 6, 2010 at 2:18 pm

Thanks, exactly what I was looking for right now.

Jim April 25, 2011 at 4:38 pm

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?

Mike July 14, 2011 at 9:01 pm

Thanks.. Just saved me some time.

Ken October 1, 2011 at 4:30 pm

Just looking for this one…thanks

Tai Travis November 8, 2011 at 10:38 am

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.

Kiran Bista November 12, 2011 at 12:35 am

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?

Nadeem Khan December 11, 2011 at 3:48 am

Lets do it shall we !

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

You can add images to your comment by clicking here.

Previous post:

Next post:

X

Wordpress, Thesis, Genesis tutorials from Binary Turf — one tutorial a day. Subscribe & sharpen your web design skills.

Name:

Email:

We respect your email privacy.