March 2005 Archives
I’d already tidied up the format of entry files so they have both enty ID and title. Now finally I get round to tidying up the category names.
Posts now have the uri:
home/section/archives/category/000123title.php
The spec to use under Archiving in weblog config is from elise.com, both category and post names are trimmed to 20 characters
<$MTEntryCategory dirify="1" trim_to="20"$>/<$MTEntryID pad="1"$><$MTEntryTitle dirify="1" trim_to="20"$>.php
Categories have their own subdirectory now:
home/section/archives/category/index.php
/index.php
I’ve been getting hit by referer spam for a couple of months. At first I noticed in my site stats that I’m being linked to by a lot of those stupid poker, pay-day loan uri’s. So much so that I have no idea about the genuine people who come to the website.
I added these to MT-Blacklist, knowing that isn’t the source of the problem. I didn’t even know what it is. Gradually I figured it out and there’s even a name for it.
Lots of articles on how to combat referer spam, mostly passive. But that’s the best we can do now. Someone’s written a perl script to get rid of bad referers in the log file but I haven’t figured out how to run perl scripts yet.
So I’ve done as much as I know how to.
Password protect the stats log file. Easily done in the control panel. Username is admin, password the usual bxxxxxx.
Block the offending root domains using .htaccess. I got the fomat and a list of banned referers from Tom Raferty, it’s uncanny how I’ve encountered most of the offenders in his list.
I have to check site stats regularly and update the htaccess file. Small steps though.
Anyway my htaccess file is viewable here.






