CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: tackling XSS

  1. #1
    Join Date
    May 2009
    Posts
    160

    tackling XSS

    what would be the best way to escape urls and make sure its clean without any cross scripting?

    i was thinking including a genric file which would preg_match the url and redirect to an error page with anything that contained script or location.

    or

    another way would be to use $_SERVER['REQUEST_URI']

    OR DO YOU GUYS HAVE A BETTER WAY?

    THANKS.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: tackling XSS

    Please start searching before posting...It's a waste of our time and makes you have to wait when the answers are already there for you!

    http://www.google.com/search?q=php+escape+url
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured