Quote Originally Posted by StrangerInBeijing
Noticed that if you add the "http://" then it always return false, but with or without www it's fine.
I'm pretty sure that's because the protocol has nothing to do with Resolving DNS records.

For example:
http://www.example.com/
ftp://www.example.com/

Are the same server (www.example.com).



If you're taking user data, it might be an idea to strip any protocols off the front, and even / at end, possibly even index.php (for example), you know never to trust users with what they enter.