How to Turn Off Trackback Spam

I hope you have already configured the spam protection in comments.

Do you still receive spam? Maybe trackback spam? Now it is time to completely block all the spam on your website. There is just two steps to implement this.

Step 1. Disable pingbacks and trackbacks for new posts

Go to Settings > Discussion and uncheck «Allow link notifications…». Look at the screenshot:

disallow trackbacks for new posts in WordPress

Oh, do you see a small notice which tell us that we can change this settings for the every post? We can do it on the post edit screen in Discussion metabox.

discussion metabox on post edit screen

Step 2. Turn off trackbacks for old posts

As I told before, you can do it on the post edit screen, but what if you have hundreds of posts on your blog? Then we just run a simple SQL query.

UPDATE wp_posts SET ping_status='closed';

Run this query via phpMyAdmin or just in PHP. Do not forget to change wp_ to your current database prefix.

Misha Rudrastyh

Misha Rudrastyh

Hey guys and welcome to my website. For more than 10 years I've been doing my best to share with you some superb WordPress guides and tips for free.

Need some developer help? Contact me

Follow me on X