目标:dasBlog中的引荐垃圾邮件

I've pretty much solved the comment-Spam problem (only one person has voiced their distaste so far) but a recently perusal of my logs and older posts indicated a ridiculous amount of referral spam. 

我几乎解决了垃圾评论问题(到目前为止,只有一个人表达了他们的不满),但是最近对我的日志和较旧帖子的阅读表明,引荐垃圾邮件数量可笑。

This is when someone hits a post on your site and has changed/hacked the HTTP Referrer Header to indicate where they came from. If your blog adds this referrer to the page, as most to, you've just linked to Hot Gay Sex (not that there's anything wrong with Hot Sex between consenting adults : ) ) or whatever by their actions.

这是当某人在您的网站上点击了某个帖子,并且更改/修改了HTTP Referrer标头以指示其来源时。 如果您的博客(大多数情况下)在页面上添加了此引荐来源,则说明您刚刚链接到“同性恋热”(并不是说成年人之间的“热性”有什么问题:))或他们的行为所引起的一切。

The story goes when Google comes around, they see that you've linked to them, and they get Google Juice via the Page Rank System.

故事发生在Google出现时,他们看到您已经链接到他们,并且他们通过Page Rank System获得了Google Juice

Not only is this potentially offensive to my readers, it also obscures the posts and comments when they are filled with referrals.

这不仅可能对我的读者构成冒犯,而且还会在帖子和评论充满引荐时使它们模糊。

Potential Solutions:

潜在解决方案:

  • Stop printing out referrals on my pages.

    停止在我的页面上打印引荐。
    • Personally, I like to see them, and I think they provide value to the reader so they can see other places with information of interest. It also promotes cross-linking between my peer blogs.

      就个人而言,我喜欢看它们,并且我认为它们为读者提供了价值,因此他们可以看到其他感兴趣的地方。 它还促进了我的同级博客之间的交叉链接。
  • Modify dasBlog to NOT add icky referrals.

    修改dasBlog以不添加有害的引荐。
    • This would be idea. However, it will likely be in version 1.7 in some way, either via James Snape's whitelist solution (I think a whitelist removes the point of referrals, and I'll greatly prefer a keyword-based black list) or some other technique.

      这是个主意。 但是,通过James Snape的白名单解决方案(我认为白名单会消除引荐的意义,并且我将更喜欢基于关键字的黑名单)或其他某种方法,它可能会以某种方式出现在1.7版中。

    • I've avoided running a "private build" of dasBlog so far (as evidenced by my care in creating the CAPTCHA solution without recompiling) and I'd to continue as such

      到目前为止,我一直避免运行dasBlog的“私有版本”(我在不重新编译的情况下创建CAPTCHA解决方案的努力就证明了这一点),我将继续这样做

  • Clean the .xml files occasionally with a process

    偶尔通过进程清理.xml文件
    • This is quick, easy, can be automated, and will work in the short term for me as I await dasBlog 1.7.

      这是快速,容易的,可以自动化的,并且在我等待dasBlog 1.7时在短期内对我有用。

So, here was an opportunity to use the only dev stuff I have on my home machine, Visual Studio C# 2005 Express

因此,这是一个使用家用计算机上唯一的开发人员东西Visual Studio C#2005 Express的机会

Here's what I did. Use at your own risk, back up your /content directory, and know that this will only have to run on your "*.dayextra.xml" files from dasBlog. No error handling, no warrenty, but it worked for me. Enjoy.

这就是我所做的。 使用时,请您自担风险,备份/ content目录,并知道它仅需在dasBlog的“ * .dayextra.xml”文件上运行。 没有错误处理,没有保修,但这对我有用。 请享用。

Usage: TrackingFilter "c:\yourdasblogcontentdirectory"

用法:TrackingFilter“ c:\ yourdasblogcontentdirectory”

File Attachment: TrackingFilter.zip (9 KB) (for VS.NET 2005, I don't know if it works in 2003)

文件附件:TrackingFilter.zip(9 KB) (对于VS.NET 2005,我不知道它是否在2003年有效)

WARNING: The words I put in the .config file are ; delimited and are unquestionably offensive. Not only do they include most of George Carlin's words but they also include "bloglines" and "artima" because they don't provide a value in my referral list.

警告:我在.config文件中输入的单词是; 划定的,无疑是令人反感的 它们不仅包含乔治·卡林( George Carlin)的大部分词语,而且还包含“博客”和“ Artima”,因为它们在我的推荐名单中没有提供任何价值。

翻译自: https://www.hanselman.com/blog/target-referral-spam-in-dasblog

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值