|
-
Apr 7th, 2007, 10:11 AM
#6
Hyperactive Member
Re: Check if website exists
 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.
» Twitter: @rudi_visser : Website: www.rudiv.se «
If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|