Ignoring referers

Roller 0.9.6's referer tracker already ignored hits from pages in the same weblog, now Lance has added an ignoreHosts option so that a Roller admin can configure Roller to ignore hits from different hosts. That is cool, but I want a little mre control over what should be ignored. For example, I got hits today from file://<some file path>/penis.htm today. Ouch!

I think the Roller referer tracker needs a both ignoreStartsWith and ignoreContaining parameters (each being a list). You could use ignoreStartsWith to ignore hits from your own host, other hosts, and from protocols such as file: or mailto:. You could use ignoreContaining to ignore hits coming in from URLs containing certain keywords.

Searching on ignoring referers I found an interesting post from Mark Pilgrim about an old Manila bug and the importance of properly escaping HTML displayed from referers. I think I need to address this issue in both the Roller Editor UI and macros.showReferers().


Like this post?  del.icio.us Bookmark it   |   submit to dig digg.com Digg it   |   slashdot Slashdot it   |   technorati See who links to it

Comments:

Post a Comment:
  • HTML Syntax: Allowed

This work is licensed under a Creative Commons License.
Copyright 2002-2007, David M Johnson (dave.johnson at rollerweblogger.org)

This is a personal weblog, I do not speak for my employer.