SERPland Flugverkehr/Airtraffic Zürich – Auto Direktimport Dänemark – Disneyland Paris – Legoland Deutschland

10Jul/072

cool wordpress plugin wp-geotrack (with my litte php modification)

If you're a WordPress Blogger: Try to install the wp-geotrack plugin. It's cool, man!
Visual tracking your sites visitors without any work to do:

WP-GEOTRACK (WordPress Plugin)

Unfortunatelly I have a lot of "bad" visitors trying to spam my guestbook. Also this spam attacs are been logged by wp-geotrack. But actually I dont' want wp-geotrack to log them because they also will be displayed as regular visitors. So I made a little wp-geotrack modification:

Go to your /plugins directory

Edit wp_geotrack.php

Around line 530 following code can be found:

$uri = addslashes($_SERVER['REQUEST_URI']);

After this line, add following code and change ti to your behaviour, so it should look like this:

$uri = addslashes($_SERVER['REQUEST_URI']);
// MODIFICATION TO NOT DETECT TO A SPECIFIC URL (JULY 2007)
if (strpos($uri,'guestbook') != false)
{
return;
}

In this examle, any page with the string "guestbook" in it will not be logged by wp-geotrack.
Save it. That's it.

See it running here at SERPland's Visitor List

Many others WordPress Bloggers are using it:
http://www.bishnet.net/tim/blog/geotrack/
http://www.christianzenker.de/blog/2007/04/15/geotrack-wordpress-plugin/
http://dev.robertmao.com/visitors-map/
http://bogit.com/wp/geotrack-test/
http://www.cs.kent.ac.uk/people/staff/dl2/wordpress/map-of-readers-around-the-world/
http://www.synsee.free.fr/wordpress/?page_id=7
http://www.plasticstare.com/plains/testmap/
http://www.boldhaus.info/statistik/
http://www.globetreter.com/category/tech/
http://www.paosborne.com/blog/?page_id=162
.. or search Google

Related Posts:

Comments (2) Trackbacks (0)
  1. This is my first post
    just saying HI

  2. I’m very hopeful that this will end the constant stream of suspicious IP reports that I’ve been receiving


Leave a comment

No trackbacks yet.