iPage vs BlueHost Vs HostMonster...?

Click Here To View All Answers...

My question is iPage vs BlueHost Vs HostMonster...? Looking forward for any response. 2nd question I got is.. After so many issues about HostGator tasting, I still have no clue which is the safest Whois where nobody will know what HostGator we searched. So can you tell me where can I find the safest Whois?..

Comments (14)

Hmm... I need to find out myself. I don't know what is the answer to your question. I'll do some research in Google and get back to you if I bump into an useful answer. You should email the people at iPage as they probably know..

Comment #1

That's right, as long as your host is on a Unix/Linux system and has the `whois` command-line utility enabled. If your host is using the Apache webserver, chances are it's on Unix or Linux. All the hosts I've tried so far have whois enabled. For an example of the output:.


Comment #2

Holy cow that is amazing! I think this would be the safest way to search for a HostGator availability and prevent HostGator tasting right?.

Ah I tried, it says: system() has been disabled for security reasons.

What should I do? By the way can you explain the function of each line? Thanks...

Comment #3

Hmm. If your host has the system() call in php disabled, this prevents you from calling the whois tool (or any other command-line tools). You should try replacing system() with exec(), or using the backtick operator (e.g. `whois $q`.

Also, while digging around on, I found escapeshellarg(). So there's no need for my regex..


$q = $_GET['q']; // get the input domain.

Header('Content-Type: text/plain'); // tell the browser we're outputting a text document.

$q = escapeshellarg($q); // strip out non-alphanumeric characters except dots, to prevent injection attacks.

System('whois '$q); // call the whois command-line utility.


Try replacing the last line with:.

Exec('whois '$q);.


`whois $q`;..

Comment #4

I've tried the exec('whois '$q); but it just output a blank page...

Comment #5

You will have to use fsock to open port 43 and query each specific WHOIS server individually..

Comment #6

But how did he do that?.


Satchel, I wonder why the link works and doesn't show: "system() has been disabled for security reasons"? Did the server enabled the system().

Should I ask my server admin to enable it too? Will it cause security problem?..

Comment #7

You could still do that in PHP using fsockopen()..

Kahsoon, I've poked around looking for free php hosts that support exec() and whois. Try.

With the following script:.

The ZendURL whois client seems to have the annoying habit of adding a javascript counter and some html to the output, so I added code to strip that out. Here's a sample of the above code in action:.


It's also got a simple form. Customize it as you need...

Comment #8

Ah and I got this instead:.


[ Servname not supported for ai_socktype].

[Unable to connect to remote host].

Do you think this will work if I buy the pro version?..

Comment #9

Don't bother buying anything. Did you get the above error while using it on Can you send me a link?..

Comment #10

I got this when I use it on my domain:.


[ Servname not supported for ai_socktype].

[Unable to connect to remote host]..

Comment #11

I've written this version which implements the whois protocol using sockets. It also gets the whole record for thin-server registries, or .net, where the record is split between the registry and the registrar servers..

Try that on your original host. It requires PHP with sockets enabled, which is the default, so I think you should be good..

Sorry about the messy code, I'll probably clean it up and post a better version at some poit...

Comment #12

It didn't work, it just show a blank page. Actually how this link did it?.


Comment #13


I use this software and it's absolutely good!.

Fast queries to the authoritive whois server and everything is done from your computer, no need going through another server..

Comment #14

I use one WHOIS and only one.... simply the best.... for domainers by non-domainers! I use them for my serious queries... everything else I use

Comment #15

This question was taken from a support group/message board and re-posted here so others can learn from it.