Click to See Complete Forum and Search --> : About showing the content of a page without the real url
LovelyGal
06-09-2005, 03:54 AM
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~~~ ;)
David Harrison
06-09-2005, 04:11 AM
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.
LovelyGal
06-09-2005, 04:25 AM
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~~~~ :confused:
David Harrison
06-09-2005, 04:25 AM
Yeah, so I said...Cannot be done, not without installing something on the users machine.
LovelyGal
06-09-2005, 04:27 AM
Are u very sure about that~~~??? Coz some people told me can make it~~~ Sweat~~~~
David Harrison
06-09-2005, 08:01 AM
Pretty sure.
felgall
06-09-2005, 05:52 PM
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.
David Harrison
06-09-2005, 06:15 PM
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?
ray326
06-10-2005, 01:38 AM
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.
makzan
06-10-2005, 03:21 AM
Are you talking about hiding path in the address bar?
For example instead of seeing
http://webdeveloper.com/forum/newreply.php?do=newreply&noquote=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.
the tree
06-10-2005, 03:26 AM
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.
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.
Scriptage
06-10-2005, 12:07 PM
I'm sure I've seen this done with telnet... I believe it was on the HTMLGoodies website.
amahmood
06-10-2005, 03:02 PM
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.
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
also if ur thinking of having a page eg
www.happydays.com and it goes to
www.emergancyserver.com/happydays/rules/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.
Scriptage
06-11-2005, 12:42 PM
A program that I wrote can do this, I have just remembered. This program lets you link to files like <a href="fs.pl?file=blah.html">blah</a>. The real path of blah may be "data/files/current/blah.html" or http://www.someotherserver.com/files/blah.html. However if someone types the address fs.pl?blah.html into the address bar the request for the file is rejected, ie: hotlinking is forbidden, you can make the files secure so nobody has permission to the files and add multiple usernames / passwords to access the files. You can buy a license if you like :)