Archive for August, 2005

Trackback Spam

30 August 2005

As of its most recent version, b2evolution has a problem with trackback spam. Several b2e users (including Whoo and Graham) have suggested renaming the directory that contains (among other things) the trackback script. In theory, this should eliminate spam from bots but should not effect legitimate commenters and pingers.

Here's a perl script I wrote to automate Whoo and Graham's suggestion: hidehtsrv.pl. I suggest creating a cron job to run hidehtsrv.pl periodically. Note: this script requires another of my perl scripts, randpass.pl, a pseudo-random string generator.

Here's a b2evolution forum thread about trackback spam, and here's a b2evolution forum thread about why renaming is effective.

See also my post about comment and referrer spam and my b2evolution forums post about this solution.

MySQLicious-based del.icio.us Sidebar Item

15 August 2005

Walter Cruz told me about MySQLicious, which mirrors your del.icio.us bookmarks in a MySQL database. I think it works much better than my previous del.icio.us sidebar solution, which used Magpie to snarf the del.icio.us RSS feed and built the sidebar item from the RSS feed.

Here's the setup as I'm using it:

  1. Setup MySQLicious according to its instructions, but ensure that you use the same database that you use for your b2e installation.
  2. Copy _mysqlicious.php to your preferred location (I put it in the same directory as my theme files).
  3. Modify your _main.php file to call _mysqlicious.php as a sidebar item. Two variables ($deliciousUsername and $MySQLicious_Table) must be set. In addition, you may set a third variable, $MySQLicious_items, which determines how many bookmarks will be displayed.

Note: Ensure that your MySQLicious setup complies with the del.icio.us rules of usage so you don't get banned.

Here's the b2evolution forum thread.

Turn Off Internet File Association Service

4 August 2005

Screen Capture

In Windows XP, when you try to open a file of unknown type, Windows offers to search the Web for the appropriate program to handle the unknown file before offering to let the user choose which program should be used. To bypass this annoying step, use the Group Policy Editor, which should be located at C:\WINDOWS\SYSTEM32\GPEDIT.MSC, navigate to:

Local Computer Policy->
  Computer Configuration->
    Administrative Templates->
      System->
        Internet Communication Management->
          Internet Communication settings->
            Turn off Internet File Association service

Then open the Properties dialog and select the "Enabled" radio button.