.: ShaolinTiger – Kung-Fu Geekery :.

A small change to WordPress to make WHOIS International

I had a problem with wordpress when I first started using it, being based in Asia most of my commenters are from this region, mainly Malaysia.

So when I tried to look up the commenters IP addresses in WordPress, I didn’t get any information because it defaults to ARIN (The American Registry) to lookup the IP addresses.

Like for example this:

http://ws.arin.net/cgi-bin/whois.pl?queryinput=60.48.199.141

It just says registered to APNIC (Asia Pacific Registry).

Where as if you use another service like Whois.sc, it will show you proper location like so:

http://www.whois.sc/60.48.199.141

To fix this, you need to edit the /wp-admin/edit-comments.php file.

The lines you need to edit are 92 and 145.

You need to change:

http://ws.arin.net/cgi-bin/whois.pl?queryinput=

to

http://www.whois.sc/

Code Change

Then re-upload the edit-comments.php file to your active install, and refresh the comments page, you can now click the IP address of the commentors and get the correct information!

Digg this article



    

Tags: , , , ,

Follow @ShaolinTiger on Twitter Follow me on Twitter Follow @ShaolinTiger on Twitter Subscribe to RSS Subscribe to RSS Subscribe to RSS

                

Posted in Internet & Tech | 9 comments -

Related Posts:
- GSC Malaysia (Golden Screen Cinemas) Domain Expired
- Search/Find and Replace Using phpMyAdmin and MySQL
- Converting bBlog 0.76 to WordPress 2.0 (Import/Export) Script
- StreamyX Goes From Bad to Worse..
- So here we are, New Look for 2006! Happy New Year
- WordPress Back To Default Install State – wp_options Table Corrupted

9 Comments so far

  1. regularguy  on February 10th, 2006 at 12:25 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    Hi,

    i’m a new blogger who uses wordpress too. I understand wordpress is downloadable. But there are some techinical complication involved. I downloaded it but the zip file had like a whole load of files.

    What should i do? Is there a site that teaches newbies how to install and use the desktop wordpress? or should i just give up now and use the online wordpress?

    Your advice is much appreciate… thanks and sorry for going off topic

  2. regularguy  on February 10th, 2006 at 12:26 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    please be informed that from a scale of 1 to 10 my tech knowledge on html, xml, php and all that other stuff is 2! ok, maybe 2.2…

  3. Sashi  on February 10th, 2006 at 1:05 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    regularguy: Allow me. WordPress is not an executable app that you just click to install. You need to upload all the unzipped files to a webhost with PHP and MySQL support. Then you should check this site out: http://codex.wordpress.org/Main_Page for instructions on installing and configuring WordPress. It’s real simple, believe me… :)

  4. Dabido (Teflon)  on February 10th, 2006 at 1:40 pm
    Using Mozilla Firefox Mozilla Firefox 1.0.7 on Windows Windows XP 

    Stone the bleedin’ crows, now you’ll figure out I’m from Aussie!

  5. hater  on February 10th, 2006 at 4:20 pm
    Using Mozilla Firefox Mozilla Firefox 1.0.7 on Fedora Linux Fedora Linux 

    +dugg

    nice and useful entry

  6. regularguy  on February 10th, 2006 at 4:21 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    thank you…

    one last question, if i have a free wordpress account what webhost with PHP and MySQL support should i use? and how do i ‘upload’ it?

    sorry for being a pest

  7. earl-ku  on February 10th, 2006 at 8:30 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    great info man, i’ve changed the 2 lines and its working

    seems like tons of machines from China Telecom is spamming me …

  8. Jacky  on February 12th, 2006 at 6:16 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    Good stuff. Thanks for the info.

  9. Patrick  on February 17th, 2006 at 4:07 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP 

    Nice tutorial.
    Didnt aware of this at all.
    Thanks.

Leave a reply