dcsimg
www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: About showing the content of a page without the real url

  1. #1
    Join Date
    Jun 2005
    Posts
    3

    Cool About showing the content of a page without the real url

    I wan to show the content to the user without showing them the real path that i store my file so that they cannot let other access the page~~

    I m using HTML and Servlet to do so~~~`

    Thx~~~

  2. #2
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    Cannot be done, not without installing something on the users machine.

    By the way, don't do that, the devil has a special place for the people who install nasties onto users machines without them knowing, it's right next to where he keeps the spammers.
    Every fight is a food fight when you’re a cannibal.

  3. #3
    Join Date
    Jun 2005
    Posts
    3

    Wink

    Erm... I din get u....

    Actually i jz wanna hide the real URL path from the user so that they cannot know the real path i store my file~~~~

  4. #4
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    Yeah, so I said...
    Quote Originally Posted by David Harrison
    Cannot be done, not without installing something on the users machine.
    Every fight is a food fight when you’re a cannibal.

  5. #5
    Join Date
    Jun 2005
    Posts
    3
    Are u very sure about that~~~??? Coz some people told me can make it~~~ Sweat~~~~

  6. #6
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    Pretty sure.
    Every fight is a food fight when you’re a cannibal.

  7. #7
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    When they request to view the page all of the files required to display the page are copied to their computer, then their browser displays that copy. They don't need to know where on your server to get the files because they are already on their own computer.

  8. #8
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    Quote Originally Posted by felgall
    When they request to view the page all of the files required to display the page are copied to their computer, then their browser displays that copy. They don't need to know where on your server to get the files because they are already on their own computer.
    Of course the user's computer needs to know where the files are, how else does it get them?
    Every fight is a food fight when you’re a cannibal.

  9. #9
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    The servlet responding to the request should open the file in question and stream it back through the output stream as the response. Any parametric information in the anchor or form action should be "key" information the servlet will use to look up the real location of the file.
    Last edited by ray326; 06-10-2005 at 01:42 AM.

  10. #10
    Join Date
    Jan 2005
    Posts
    6
    Are you talking about hiding path in the address bar?

    For example instead of seeing
    http://webdeveloper.com/forum/newrep...ote=1&p=384114
    at the top, you just see
    http://www.webdeveloper.com/
    ?

    If so, this can be done although I apologise, because I can't remember how!
    You can always stop people viewing your source code.

  11. #11
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Quote Originally Posted by makzan
    If so, this can be done although I apologise, because I can't remember how!
    It could be done with framesets but that could be got past without much effort.
    Quote Originally Posted by makzan
    You can always stop people viewing your source code.
    If you honestly belive that then please show us a working example so we can show you it's source.

  12. #12
    Join Date
    Nov 2002
    Location
    England
    Posts
    693
    I'm sure I've seen this done with telnet... I believe it was on the HTMLGoodies website.

  13. #13
    Join Date
    Aug 2004
    Posts
    249
    You can't do that with HTML.
    You can make it difficult for the user using javascript, for example, opening a new page without the address bar and disabling righ click but you cannot stop the persistant user from finding the address.

    But the ultimate way is using ASP or PHP and a database.

  14. #14
    Join Date
    Apr 2004
    Location
    Warning: main(location.php): failed open stream
    Posts
    1,119
    its possible, through .htaccess mods and stuff on your server eg. http://fabio.ugtech.net/file_download/1 thats a file on my site but its real link is somthing like http://fabio.ugtech.net/file/1.exe

  15. #15
    Join Date
    Apr 2004
    Location
    Warning: main(location.php): failed open stream
    Posts
    1,119
    also if ur thinking of having a page eg
    www.happydays.com and it goes to
    http://www.emergancyserver.com/happy.../backup/4.4444 and you only want people to see
    www.happydays.com
    then you could use an IFRAME though i strongly do not recommend this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles