在dasBlog中防止评论,引用和引荐垃圾邮件

Blog spam is a huge problem. If you don't spend time "tending" to the garden that is your blog, you'll return back after a short hiatus and find it completely overrun with weeds and spam.

博客垃圾邮件是一个巨大的问题。 如果您不花时间“照看”您博客的花园,则短暂的中断后您将返回,发现杂草和垃圾邮件完全淹没了它。

Here's how to keep your dasBlog installation free of SPAM.

这是使dasBlog安装不受SPAM影响的方法。

最简单的 (Easiest)

Here's the absolute easiest way to clean your dasBlog installation of spam.

这是清理dasBlog安装的垃圾邮件的绝对最简单的方法。

  • Turn off TrackBacks and Pingbacks

    关闭引用和引用

    • Trackbacks and Pingbacks are the way that blogs let YOU know that you're being talked about. For example, if I mention Greg, like I just did, dasBlog will send him a Trackback and a Pingback when I submit this blog post and there's an endpoint on his blog, listening over HTTP that will receive it. Then his web server will load up my page and check to see if there's really a new link. A pingback is the same thing, without the back-check.

      引用和Pingback是博客使您知道自己正在被谈论的方式。 例如,如果我提到Greg ,就像我刚才提到的那样,当我提交此博客文章时,dasBlog会向他发送一个Trackback和Pingback,并且他的博客上有一个终结点,通过HTTP进行侦听将接收它。 然后,他的Web服务器将加载我的页面,并检查是否确实有一个新链接。 pingback是一回事,没有回溯检查。

    • However, more and more I believe the Trackback spec is broken. There's just no decent way to prove that the Trackback is legitimate.

      但是,我越来越相信Trackback规范已被破坏。 只是没有一种体面的方法来证明该引用是合法的。
    • Therefore, I've stopped collecting them. 7 out of 10 Trackbacks I get are spam, so I've turned off the service in DasBlog. Instead, I check Technorati for references to my blog in order to see if anyone's mentioned a topic I've blogged about.

      因此,我已停止收集它们。 我收到的10个引用中有7个是垃圾邮件,因此我已关闭了DasBlog中的服务。 相反,我检查Technorati以获取对我的博客的引用,以查看是否有人提到了我写过的话题。

      Technorati for references to my blog in order to see if anyone's mentioned a topic I've blogged about. Technorati以获取对我的博客的引用,以查看是否有人提到了我写过的话题。
      image

    Turn off TrackBacks and Pingbacks

    关闭引用和引用

  • Turn off Referrals

    关闭引荐

    • Referrals are created when someone simply arrives at your site from another site. They are created by the HTTP Referer (yes, it's misspelled) Header and it's the easiest of the spams to fake. It also grows forever. I've turned it off by un-checking "Save Referrals Along with Entries." This is especially important if you run a high-traffic blog. Quickly you'll find that Referrals will take up more space than your blog content!

      当某人只是从另一个站点到达您的站点时,便创建了引荐。 它们是由HTTP Referer(是的,拼写错误)标头创建的,是最容易伪造的垃圾邮件。 它也永远增长。 我已通过取消选中“将引荐与条目一起保存”将其关闭。 如果您运行流量很高的博客,这尤其重要。 很快,您会发现引荐将比您的博客内容占用更多空间!

    Turn off Referrals

    关闭引荐

  • Remove All your old Referrals

    删除所有旧的推荐人

    • If you run the dasblogupgrader.exe (you can run it as many times as you like) on your content folder, there is an option to remove all referrals. I suggest you do just that, then turn off this option. It'll tidy up your XML files, make your whole blog faster and referral spam free.

      如果在内容文件夹上运行dasblogupgrader.exe(您可以随意运行多次),则可以选择删除所有引荐。 我建议您这样做,然后关闭此选项。 它将整理您的XML文件,使您的整个博客更快并且免费转介垃圾邮件。
    • You download your entire content folder to your local machine, and run:

      您将整个内容文件夹下载到本地计算机,然后运行:

      You download your entire content folder to your local machine, and run:dasblogUpgrader.exe c:\myfolder\contentand follow the prompts.

      您将整个内容文件夹下载到本地计算机,然后运行: dasblogUpgrader.exe c:\ myfolder \ content 并按照提示进行操作。

    Remove All your old Referrals

    删除所有旧的推荐人

  • Stop Displaying Trackbacks and Referrals

    停止显示引用和引用

    • Posts (items) in dasBlog are formatted according to the "itemTemplate.blogtemplate" file using well-known macros. Go into your theme's itemTemplate.blogtemplate and remove both <%TrackbackList%> and <%ReferralList%>. Both of them take processing time to load up the referrals and trackbacks you've collected, and if your blog is spammy, these will only display naughty things you don't want.

      使用众所周知的宏,根据“ itemTemplate.blogtemplate”文件对dasBlog中的帖子(项目)进行格式化。 进入主题的itemTemplate.blogtemplate并删除<%TrackbackList%>和<%ReferralList%>。 他们俩都需要花费处理时间来加载您收集的引荐和引用,如果您的博客是垃圾邮件,那么它们只会显示您不想要的顽皮内容。

    • Instead, consider replacing them with a call to Technorati like this:

      相反,可以考虑将其替换为对Technorati的呼叫,如下所示:

      <li class="technorati"><script src="http://embed.technorati.com/linkcount" type="text/javascript"></script><a class="tr-linkcount" href="http://technorati.com/search/<%PermalinkUrlRaw%>">Blog reactions</a></li>
      
    • Or, use the FeedBurner service and include their Technorati "FeedFlare" option. Here's how to add FeedBurner Flare to dasBlog.

      或者,使用FeedBurner服务并包括其Technorati“ FeedFlare”选项。 这是将FeedBurner Flare添加到dasBlog的方法

    Stop Displaying Trackbacks and Referrals

    停止显示引用和引用

  • Turn off Comments or turn on CAPTCHA

    关闭评论或打开验证码

    • I personally wouldn't suggest this, but you could always turn off comments all-together. I would argue that at this point you have a pamphlet, rather than a blog, but it's your blog.

      我个人不建议这样做,但是您可以始终关闭所有注释。 我想说的是,您现在有一本小册子,而不是一个博客,但这是您的博客。

    • Alternatively, you could make sure that CAPTCHA (those funny letters you have to type in to prove you're a human) is enabled.

      另外,您可以确保启用了验证码(您必须键入以证明自己是人类的那些有趣的字母)。
    • You could also turn on explicit comment approval but if you have a high-traffic blog this will get old fast.

      您也可以打开明确的评论批准,但是如果您的博客流量很高,那么它很快就会过时了。

    Turn off Comments or turn on CAPTCHA

    关闭评论或打开验证码

  • Close your Comments after some period of time

    一段时间后关闭您的评论

    • This is a little controversial, but I found that a lot of really old posts were getting spammed a lot. I started turning off comments for posts over 60 days old and my incoming spam dropped a LOT.

      这有点争议,但是我发现很多非常老的帖子被垃圾邮件很多。 我开始关闭超过60天的帖子评论,而我收到的垃圾邮件却掉了很多。

    Close your Comments after some period of time

    一段时间后关闭您的评论

稍难(并且仍然有效)(Slightly Harder (and still effective))

Ok, so you're not willing to do the easy stuff. Here's some more tricky things, that give you the best of both worlds

好的,所以您不愿意做简单的事情。 这是一些比较棘手的事情,可让您两全其美

  • Start using Akismet

    开始使用Akismet

    • Go visit the WordPress.com site and sign up for a free account.

      请访问WordPress.com网站并注册一个免费帐户。
    • IMPORTANT: At the bottom, click "Just a username, please." You don't want a blog, remember, you're using dasBlog.

      重要说明:在底部,单击“请输入用户名”。 您不需要博客,记住,您正在使用dasBlog。

    • They will email you a welcome and in that email will be an API KEY. That's what you want and why you signed up for a free account.

      他们会通过电子邮件向您发送欢迎邮件,并且该电子邮件中将包含API密钥。 这就是您想要的,也是为什么您注册了免费帐户的原因。

      WordPress.com - Windows Internet Explorer
    • Go into the dasBlog configuration page at the VERY bottom and click "Enable spam blocking service." DasBlog uses Subkismet, from Subtext. Enter your API Key and click either "Save suspected SPAM" or "Delete Suspected SPAM immediately."

      进入非常底部的dasBlog配置页面,然后单击“启用垃圾邮件阻止服务”。 DasBlog使用Subtext中的Subkismet 。 输入您的API密钥,然后单击“保存可疑垃圾邮件”或“立即删除可疑垃圾邮件”。

    • Akismet is very very accurate in my experience, so I just delete SPAM. It will block comment spam and TrackBack spam, so you could keep Trackbacks up with this solution if you like.

      根据我的经验,Akismet非常准确,因此我只删除了SPAM。 它将阻止评论垃圾邮件和TrackBack垃圾邮件,因此您可以根据需要使用此解决方案保持Trackbacks的正常运行。
    • I would also greatly encourage you to pay them $5 a month or $55 a year via PayPal for preferred service. Your response from their servers will be faster. I've been very happy with them.

      我也强烈建议您通过贝宝(PayPal)每月向他们支付5美元或每年向他们支付55美元,以获得优先服务。 您从他们的服务器得到的响应将更快。 我对他们很满意。

    Start using Akismet

    开始使用Akismet

  • Add a Referral Blacklist

    添加推荐黑名单

    • Still not ready to give up referrals? Enable the Referral Blacklist and enter in a ';' separated list of naughty words that appear in your referrals. Be warned, this list will be used to create a Regular Expression, so keep it simple.

      还是不准备放弃转介? 启用引荐黑名单并输入“;” 引荐中出现的顽皮单词的分隔列表。 请注意,此列表将用于创建正则表达式,因此请保持简单。
    • Also, click "Send 404s to blacklisted referrals" and dasBlog will lie to the spammers and tell then the page is gone.

      另外,单击“将404发送到列入黑名单的引荐”,然后dasBlog会向垃圾邮件发送者说谎,并告知页面已消失。

    Add a Referral Blacklist

    添加引荐黑名单

  • Block Specific IPs

    阻止特定IP

    • If a particular IP Address is a problem, make a blockedips.config file in your /SiteConfig folder and put each IP on a different line. Then make sure this line in is the httpModules section of your web.config:

      如果特定的IP地址有问题,请在/ SiteConfig文件夹中创建一个被阻塞的IPs.config文件,并将每个IP放在不同的行上。 然后确保此行是web.config的httpModules部分:

      If a particular IP Address is a problem, make a blockedips.config file in your /SiteConfig folder and put each IP on a different line. Then make sure this line in is the httpModules section of your web.config:

      如果特定的IP地址有问题,请在/ SiteConfig文件夹中创建一个被阻塞的IPs.config文件,并将每个IP放在不同的行上。 然后确保此行是web.config的httpModules部分:

      <add type="newtelligence.DasBlog.Web.Core.IPBlackList, newtelligence.DasBlog.Web.Core" name="IPBlackList"/>

    Block Specific IPs

    阻止特定IP

  • Install ReverseDOS

    安装ReverseDOS

    • Still not satisfied? Install AngryPet's ReverseDOS and fight back. It's a fairly sophisticated HttpModule that lets you determine what's legit and what's not. Tony uses it under dasBlog and SubText ships with ReverseDOS. We likely will add this in the future, but you can always add it now.

      还是不满意? 安装AngryPet的ReverseDOS并进行反击。 这是一个相当复杂的HttpModule,它使您可以确定什么是合法的,什么不是合法的。 Tony在dasBlogSubText与ReverseDOS一起使用时使用它。 我们可能会在将来添加它,但是您现在可以随时添加它。

    Install ReverseDOS

    安装ReverseDOS

These are the ways I know of to fight blog SPAM. If you have more, add them to the comments!

这些是我与博客垃圾邮件作斗争的方法。 如果您还有更多内容,请将其添加到评论中!

翻译自: https://www.hanselman.com/blog/preventing-comment-trackback-and-referral-spam-in-dasblog

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值