We have had some requests for a server based whois script to use with Domain Punch Pro and Watch My Domains ISP.

So, here is a simple PHP script (less than 130 lines) that you can use. Upload it to your server and specify the appropriate settings in your whois setup (within Domain Punch Pro or Watch My Domains).
Please note that this script uses port 43 whois servers. It doesn’t support domains that have no port 43 whois server. It is useful if your company network doesn’t allow connections through port 43 or if you are unable to lookup some domains using your ISP.
Click here to download simple PHP Whois script.
Previous blog post about web based whois.
The script supports a number of port 43 whois servers. You can add more by editing the script. It is simply provided for your guidance. You can use it as it is or modify it as you wish. We are unable to provide additional support for this script.
Here are the required settings (assumes that it is uploaded as yourdomain.com/scripts/whois.php)
Whois Server: www.yourdomain.com
Port: 80
Comand Line: GET /scripts/whois.php?domain={D}
Important: Please note down the other settings like date format, search token, etc. for any port 43 whois server you want to replace with the server script. You will have to add them back after you change the above settings.
Also, be aware that other people can use this script from your server if they know the URL to it. We suggest that you modify it to prevent others from accessing it. You could, for example, change the name of the GET parameter used for passing the domain name or add additional verification data.
Click here to download simple PHP Whois script.