It's Microsoft's World, and I'm just living in it
View Clarence Klopfstein's profile on LinkedIn

Clarence Klopfstein's Facebook profile

This site is under construction...


New Comments

Referring Sites


  • This is MY blog. The views represented here are not in relation to anybody else. Please read my full disclaimer for a more complete disclaimer.

Recent Referrers User Control

March 1, 2010 06:00 by ckincincy

In the past, Chris Blankenship had written a user control to show the recent referrers in DotNetBlogEngine.  I’ve used it on my site since then.  However in a recent upgrade of the code base it stopped working.  Having a little free time on my hand, I took the time to fix it for version 1.6. 

While doing that I wanted the ability to white list and black list certain domains.  The logic in DotNetBlogEngine to see if a referrer is spam is a little limited.  It does a simple web request on the referrer to see if it can find the host domain in the returned HTML.  This leads to a lot of good referrals being marked as spam.  Then there are some ‘good’ domains that I want hidden.

imageSo I added a white and black list to the referrer page.

The end result you see on the side bar of my site. 

If you’d like the code, you download it below.  This change does require a recompile of the business logic dll, and a schema change if you are using SQL.

Download Referrer Patch 1.1 – 31.4KB

Comments are closed