ArticlesForumDownload AboutContact

boakes.org

nice of you to drop by. tea?

tags: WordPress

ignoring oneself and others

September 20th, 2004, by Rich.

the ability to ignore an ip address in stattraq is rather useful and i wonder if it could be extended to be a part of the main plugin.

the above article describes a method whereby an ip address is hard coded into the stattraq.php file, which is not particularly flexible, or easily upgraded.

stattraq already contains a page which shows the ip addresses of past connections, on which it is possible to do a whois lookup, or get session information such as the browser used. could this page extended so incorporate an “ignore this ip” option?

when this option is selected the ip address should be written to a table of ignored addresses. the stattraq.php file should then check this table for the presence of the incumbent IP address before preparing any data for writing.

also required would be a “IP Ignorance” page which would need to display any addresses which had been previously ignored and allow them to be removed from the table, and also, to allow the user to manually add addresses to the table.

if the table content were to be loaded and cached rather than just queried for the presence of the IP address, then it might also be possible to store regular expressions, thus whole ranges of addresses could be ignored without requiring thousands of entries in the db - this latter idea, i suspect, is more of a future enhancement than something which could be knocked together in a few hours.

Have your say...