WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Valid URLs
How can I check on submission?

Version:
printPrint


Valid URLs
yosmc
Member

Usergroup: Customer
Joined: Jan 30, 2005
Total Topics: 5
Total Posts: 12
Posted 02/13/05 - 02:16 PM:
quote post
#1
Right now it seems that users can submit *anything* as an URL, e.g. http://asfwasrwee. How can I make sure/auto-check that only valid URLs are submitted? Thanks!
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 02/13/05 - 09:20 PM:
quote post
#2
You can't. You can check reciprocal link urls for your link although it's dangerous to do so and can lead to tbe browser hanging doing nothing when the page doesn't exist, but not regular site urls. To do so would simply make attempted submissions take forever, or best case scenario would lead to URLs being rejected because they happen to be slow loading.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
yosmc
Member

Usergroup: Customer
Joined: Jan 30, 2005
Total Topics: 5
Total Posts: 12
Posted 02/13/05 - 09:40 PM:
quote post
#3
Actually I didn't mean checking if the site exists - just basic validation if it's valid URL syntax in the first place. Really nothing fancy, as far as I'm concerned it needn't even check for specific TLDs, but every URL should at least have a . and *some* kind of extension.:)
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.