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. General Programming
  3. .NET (Core and Framework)
  4. How can we restrict a user from changing the download path url's fine name.

How can we restrict a user from changing the download path url's fine name.

Scheduled Pinned Locked Moved .NET (Core and Framework)
comhelp
3 Posts 3 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.
  • U Offline
    U Offline
    User 8224730
    wrote on last edited by
    #1

    Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani

    T D 2 Replies Last reply
    0
    • U User 8224730

      Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani

      T Offline
      T Offline
      TheGreatAndPowerfulOz
      wrote on last edited by
      #2

      First, you would need to have the user login. Then using the associated cookie/token have permissions associated with those files.

      If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
      You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

      1 Reply Last reply
      0
      • U User 8224730

        Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani

        D Offline
        D Offline
        Dalek Dave
        wrote on last edited by
        #3

        Another answer would be to make the names of the files hideously complicated and non sequential. Thus if he wanted to load the first file, 'File1' then fine, but he would presume that the second file would be 'File2' not 'DannyBoyK4ZqZarniwoop' or some such thing.

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

        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