Hi,
I'm noticing a lot of erroneous URL entries made by our users. Some of the common ones are listed below. I want to make sure I only save correct URLs in the database. How should I make sure I handle that? What process should I put the data entered by users
before I write them into the database?
Here are some typical errors:
http:/ htp:// ttp:// hptt://
Of course, the same erroneous entries are there for https. By the way, these are just simple user entry errors - not to mentioned entries made to break into the system.
I think I need to allow the user http:// or https:// otherwise I'd have no way of knowing if they're entering a URL for a secure site or not. Having said that I don't want to reinvent the wheel. I'm sure this is a matter that's already been handled by others
and I'd like to take advantage of an existing solution if I can.
Go to the complete details ...