How to disable self Pingbacks and Trackbacks in WordPress


Know how to disable self Pingbacks and Trackbacks in WordPress blog

What is a Pingback?

An automatic notification is sent to your blog by another blog or website when your blog’s link was placed in another website or blog. This pingback will appear as a special type of comment under your blog post comments. If you set to auto approve pingbacks, you can see that pingback as published or else you need to manually approve the pingbacks received for your blogs.

It will create a reciprocal link to the blog which linked your blogpost.

In WordPress, if you own a blog A and a blog owner say B published a blogpost on his blog B linking to one of your blog post from blog A, blog A will receive pingback from blog B. If your WordPress blog automatically allows pingbacks, then the pingback from blog B will be automatically published on blog A. If not, the pingback will be waiting in your comment moderation which you need to approve it manually.

Simply to say, Pingbacks allows software’s like WordPress to communicate between websites.

Understanding Pingbacks:

  1. Suppose, I own a WordPress blog and I write articles on my blog.
  2. And also owns a WordPress blog. If he publishes an article mentioning my blog link in his blog post.
  3. Then, my blogging software, which is WordPress will receive the ping from blog.
  4. Now, my blogging software will automatically checks the existence of pingback from neilpatel’s blog, if the pingback is present.
  5. Then I will have the ability to display neilpatel’s pingback on my blog under comments.

Some blogs will auto approve pingbacks, while some needs approval before the pingbacks appear in their blogs. And some people will totally disable the pingbacks.

For example, here is one of the pingback published in my blog.

Now, Pingbacks not only occur when your blog was linked by external sites but also for internal linking too. Whenever you write an article by linking one of your earlier blog post in the current published article. A pingback will be created automatically in WordPress, many people like this feature, but some people may find it frustrating and wanted to disable it. Continue reading this article to know how to disable the self pingbacks.

There are two ways to disable the self ping backs in WordPress

  1. Using WordPress plugins to disable pingbacks
  2. Manually editing the code

Disabling self pingbacks in WordPress using plugins:

  1. Using No Self Pings Plugin:

Step 1: In your WordPress admin dashboard, go to Plugins > Add New

Step 2:

In the top right hand side of your admin dashboard, there is a search bar to search for plugins. Type for “no self pings

Step 3:

You will be shown with No Self Pings plugin listed in the search results. Click on Install to install the plugin to your WordPress blog.

Step 4:

After clicking on install, click on Activate Plugin to activate the plugin.

After the installation of No Self Pings plugin, you won’t see any settings at all in your WordPress dashboard. But it will do the job in the backend. Though, the plugin hasn’t been updated in over 2 years. It does the job flawlessly. If you are still skeptical in using this plugin, there is another plugin which does the same job. Continue reading to know more about it.

  1. Using Disabler plugin

Step 1:

Like we did in the earlier section for installing the plugin, follow the same steps for installing the Disabler plugin.

Step 2:

After installing the plugin and activating it. Go to Settings > Disabler in your WordPress admin panel.

In Disabler Settings, check the option Disable self pings (i.e. trackbacks/pings from your own domain) to disable self pingbacks and trackbacks in your website or blog. After checking the option, click on save settings to save your settings.

It also offers disabling of other features like Disable XML-RPC, Disable auto-saving of posts and disabling of post revisions.

Check the settings that you want to disable and save your settings. Once you have saved the settings, you will no longer receive any pingbacks.

Turning of Self Pingbacks without using any plugins:

Disabling self pingbacks using WordPress built-in feature:

WordPress has an in built option to disable pingback feature globally. To do so, Go to your WordPress admin panel > Settings > Discussion

In that, under Default article settings section

Uncheck the option Attempt to notify any blogs linked to from the article

Click Save Changes to save your new settings, which will disable your self pingbacks.

Inserting Code to Disable self pingbacks:

If you don’t mind adding code snippet to your blog files to disable pingbacks and trackbacks. Add the following line of code to your functions.php file.

function no_self_ping( &$links ) {

    $home = get_option( ‘home’ );

    foreach ( $links as $l => $link )

        if ( 0 === strpos( $link, $home ) )



add_action( ‘pre_ping’, ‘no_self_ping’ );

Which will automatically disables the pingbacks and trackbacks in your blog.

If this article has helped you in anyway, please comment below.