WhosOnCFC Update: Getting Rid of Pesky Bots
Well, today has been a rough day to say the least. To get my mind off of things, I have followed Joshua Cyr's advice and added a few options in to help control how bots with masked user agent's are handled.
First I added in the ipBlockList array. Basically, this is just storage for IP addresses we no longer want to track since they keep creating a new session on every page they view.
Next I added a new argument to the WhosOnPageTracker() function in whoson.cfc, useIPBlockList which is just a boolean value that defaults to true. If this is enabled, once an IP address creates a predetermined amount of sessions in the active user array (indicated by variables.ipBlockListThreshhold defined in the initialization of the CFC) it will add the IP address into the ipBlockList array and will then delete all sessions in the active user array with that IP address as well. The next steps are to have the max user account adjusted accordingly as well as having that information reflected in the WhosOnCFCStats information.
These are things I will probably tackle this evening if I am not running around Azeroth.
EDIT: The new code has not been uploaded to RIAForge yet nor has the SVN repository been updated. I am waiting until I get the code polished off.


There are no comments for this entry.
[Add Comment]