Re: Validating a valid URL

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

  • Next message: Stig Dommarsnes: "Context expired (SEC_E_CONTEXT_EXPIRED?)"
    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.
    >
    >


  • Next message: Stig Dommarsnes: "Context expired (SEC_E_CONTEXT_EXPIRED?)"

    Relevant Pages