Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How do I handle wrongly suffixed url of webpages?

How do I handle wrongly suffixed url of webpages?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestioncsharpasp-net
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravi Sant
    wrote on last edited by
    #1

    How do I handle wrongly suffixed url of webpages? for eg: Correct url: http://mdc01c/en/Journey/ Played with url: http://mdc01c/en/Journey/df how to handle 'Played with url' case in ASP.Net? Please guide. Thanks.

    // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

    Tell your manager, while you code: "good, cheap or fast: pick two. "

    L 1 Reply Last reply
    0
    • R Ravi Sant

      How do I handle wrongly suffixed url of webpages? for eg: Correct url: http://mdc01c/en/Journey/ Played with url: http://mdc01c/en/Journey/df how to handle 'Played with url' case in ASP.Net? Please guide. Thanks.

      // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

      Tell your manager, while you code: "good, cheap or fast: pick two. "

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Ravi Sant wrote:

      how to handle 'Played with url' case in ASP.Net?

      Display a 404-page? What else would you want to do? You could log the IP from the requestor, and block them for a certain period if you're under the impression that they're looking for holes in your security.

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      R L 2 Replies Last reply
      0
      • L Lost User

        Ravi Sant wrote:

        how to handle 'Played with url' case in ASP.Net?

        Display a 404-page? What else would you want to do? You could log the IP from the requestor, and block them for a certain period if you're under the impression that they're looking for holes in your security.

        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

        R Offline
        R Offline
        Ravi Sant
        wrote on last edited by
        #3

        I am sorry, if have wrongly or partially framed question. I have already done that using customerrors=on in asp.net web.config. But, it does not works for internal websites and I am to no-where since yesterday.

        // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

        Tell your manager, while you code: "good, cheap or fast: pick two. "

        1 Reply Last reply
        0
        • L Lost User

          Ravi Sant wrote:

          how to handle 'Played with url' case in ASP.Net?

          Display a 404-page? What else would you want to do? You could log the IP from the requestor, and block them for a certain period if you're under the impression that they're looking for holes in your security.

          Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          you can do it by window.location = newUrl;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups