最新消息:

批量禁用Pingback与Trackback

WordPress 观测者 4296浏览 17评论

Pingback与Trackback的作用与区别:
Pingback简单说就是引用,一旦你的网站启动Pingback功能,当你的文章有引用别的网站上的内容,当你的文章发表或者是更新时,会以评论的方式给对方发送一个ping消息。具体的表现为当你的新文章发布后,文章的评论中会出现一个和你文章内容相同的评论。

Trackback则是参照告知,是针对老式博客系统的一种引用通知方式。这部分的通知是依据文章编辑区下方的“发送trackback到”这个可选项中的链接地址发送以评论的方式到指定的网站。如下图:

如果刚好你的单篇文章下方的“这个页面接受trackback和pingback”这个选项开启了时,当对方发送Trackback,则你网站中对应的链接文章会显示一条评论。

在国外,很多的垃圾网站都喜欢使用Pingback、Tarckback来灌爆你的留言,现在国内也有相当的网站加入到了这一行列中。而这个功能对大多数站长来说,不仅不实用,反而会带来服务器压力增大,垃圾评论满天飞的不快。

禁用Pingback与Trackback:
进入WordPress后台,在“设置-讨论”里面把“接受从其它博客的链接通知(pingback和trackback)”的默认勾选去掉。

但这步操作只对设置生效以后的文章有效,在后台文章列表中打开你之前发布的文章,点“快速编辑”,可以看到该文章的状态仍是“允许ping”:

如果博客中文章较少,可以手动一篇篇去修改。当然我们也可以进入phpMyAdmin执行以下语句进行批量修改:

UPDATE wp_posts SET ping_status='closed';

通过以上的SQL命令就能把所有文章的Pingback功能关闭了。

转载请注明:观测者 » 批量禁用Pingback与Trackback

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (17)

  1. Nice pоѕt. Ilearn something new and challenging on websites I stumbleupоn evᥱryday. It will always be interesting to read tɦrough artiсles from other authors and practice a little something from other sites.
  2. Everyone loves what you guys are up too. This type of clever work and coverage! Keep up the terrific works guys I've incorporated you guys to my personal blogroll.
  3. I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz reply as I'm looking to construct my own blog and would like to find out where u got this from. thank you
  4. Everything is very open with a really clear explanation of the issues. It was truly informative. Your site is very helpful. Thanks for sharing!
  5. The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a forty foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is completely off topic but I had to share it with someone!
  6. Greetings I am so excited I found your blog page, I really found you by mistake, while I was researching on Bing for something else, Anyways I am here now and would just like to say kudos for a fantastic post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the superb b.
    manicure Taiwan; Republic of China (ROC) Opera Windows 4周前 (04-03)回复
  7. Hello, i rᥱad your blog oсcasionally and i own a similar one and i was juѕt աondеring if you get a lot of spam гemarks? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it's driving me mad so any assistance is very much appreciated.
  8. Hmm is anyone else having problems with the images on this blog loading? I'm trying to determine if its a problem on my end or if it's the blog. Any suggestions would be greatly appreciated.
    manicure Taiwan; Republic of China (ROC) Opera Windows 4周前 (04-02)回复
  9. Thank you for the good writeup. It if truth be told was once a amusement account it. Look complicated to more introduced agreeable from you! However, how can we communicate?
    vimax asli Indonesia Opera Windows 1个月前 (03-27)回复
  10. Incredible! This blog looks exactly like my old one! It's on a totally different subject but it has pretty much the same layout and design. Wonderful choice of colors!
    Pembesar Payudara Opera Windows 2个月前 (03-14)回复
  11. I'm extremely impressed along with your writing skills as neatly as with the layout for your blog. Is this a paid subject or did you modify it yourself? Anyway stay up the excellent high quality writing, it's rare to look a nice weblog like this one nowadays..
  12. This piece of writing gives clear idea in support of the new visitors of blogging, that actually how to do blogging and site-building.
    clash royale free gems European Union Opera Windows 2个月前 (03-02)回复
  13. 问作者,如果这样做了,把“接受从其它博客的链接通知(pingback和trackback)”的默认勾选去掉,禁用Pingback与Trackback。那以下是不是没有效果了? 设置--撰写设置--更新服务--当您发表一篇新文章时,WordPress将会向下面的站点发出通告。更多关于“更新服务”的信息,请查看Codex文档。一行一个通告服务的URL。
    king China Mozilla Firefox Windows 3年前 (2014-09-24)回复
    • 我猜测是这样,因为那些更新服务商会去ping你的文章,而按本文设置后就不允许ping了,所以会造成更新服务失效。
      观测者 China Google Chrome Windows 3年前 (2014-09-24)回复
      • “更新服务”是指ping , 这样可以加速搜索引擎收录。"禁用Pingback与Trackback"应该不会影响到ping吧?如果影响了,就得不偿失了
        king China Mozilla Firefox Windows 3年前 (2014-09-25)回复
        • 禁用了Pingback与Trackback之后,在后台文章列表选择一篇禁用之后发表的文章,点击“快速编辑”,可以看到“允许ping”前面的复选框不是选中状态,说明该文章是不允许ping的,这样会影响到更新服务吧?具体我也不是很清楚,WordPress官方也没说明白
          观测者 China Google Chrome Windows 3年前 (2014-09-25)回复
          • 问过人,他说,"禁用Pingback与Trackback"不会影响到ping , 三者功能是不同的。
            king China Mozilla Firefox Windows 3年前 (2014-09-30)