Re: Validating a valid URL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 09/29/04


Date: Wed, 29 Sep 2004 16:38:55 +0200

Shabam,

Your question is not new in dotnet Newsgroups, I did a search on Google
here are some, sorry using regex.

http://tinyurl.com/69yyr

When that does not fit, I would ask it as well crossposted as you already
did in the newsgroups.
Microsoft.public.dotnet.languages.vb (or csharp) according what you use
and
Microsoft.public.dotnet.framework.aspnet

I hope this helps?

Cor

"Shabam" <blislecp@hotmail.com> > Is there a function that validates if a
URL is valid or not? Basically I'm
> trying to filter out bogus input, and things like cross site scripting
> attacks.
>
> Example:
> <img src="javascript:alert(document.cookie)">
>
> Doing it by regex seems way too complicated and there could be holes in
> the
> logic if something is missed.
>
>



Relevant Pages