SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2010
    Location
    Oakland,NJ
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to hide link to remote server

    I am interested to learn how to hide(LINK) pointing to remote server from within html/php application.
    I do not want users to see the directory on my site where I keep my zip files when they hover over.

    Thanks

    Bob Ghdosi

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    455
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Before you display the link to the user create a symlink pointing to the real file location and make sure the user gets only the symlink path in the browser. Depending on your needs you can make one symlink and use it all the time if all you want is hide the real file location. Or, you can dynamically create symlinks with random names for each user and delete them after a certain period of time if you want the download links to expire.

  4. #4
    SitePoint Member
    Join Date
    Jan 2010
    Location
    Oakland,NJ
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Explain to me how to create a symlink. show me in one line or two of coding how it is done. Thanks.
    Bob Ghodsi

  5. #5
    SitePoint Member
    Join Date
    Jan 2010
    Location
    Oakland,NJ
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the link.

    It does the trick just fine.

    Bob


Bookmarks

Posting Permissions

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