Blogging Roller

Dave Johnson on social software, open source and Java

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().
Comments:

Post a Comment:
  • HTML Syntax: Allowed