View Full Version : Is there a way to disguise original d/l location
Zombie
09-24-2002, 06:25 PM
Ok my buddy is hosting some files on his personal page, he does not want my users to see the original location, for example
the file is located at www.egyt.com
but we do not want to show this is there anyway to block this from happening?
Vladdy
09-24-2002, 07:09 PM
Simple way but not bullet-proof is:
href="loadFile();"
function loadFile()
{ window.location.href="www.yoursite.com/file";
}
However original location can still be found by examining the source.
Better way is by using server side scripting. For example using ASP File component you can read a file from the same server and output it to the client. I think there is similar ASP component that can "read" file from an arbitrary url just like browser would.
beetle
09-24-2002, 08:39 PM
Ah yes, server-side would definitely provide someting more secure.
Hiding that location with javascript is pretty much like trying to hide source code (http://www.codingforums.com/showthread.php?s=&threadid=4437&highlight=protect+source+code). You can do it, but only to people that know less than you. :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.