Journal inerte's Journal: URL validation 1
With the launch of a new website, http://www.miniurl.com.br (which works like tinyurl.com), I've learned one thing, despite many claims that is possible: You can't validate web addresses.
Sure, an URL needs the scheme, like http:// or ftp://, but browsers will load www.google.com or google.com just fine, and that's actually what users are entering on the app. Non-USA domains have strange TLD, so coming up with a regex for them it's a no-no. Then you have sub-servers, sub-domains, directories, query strings, custom DNS rules (some URLs with non-ascii characters actually resolve around the world)... a bunch of stuff.
Just venting the frustation... because some people clearly put "test" strings on the form and hit submit, and now the DB has invalid URLs, but such is life...
Sure you can (Score:2)
The better question is does a full va