Loading Page Script -- Need Help Please

by halmo
2 replies
I have a loading page that I referenced on another page for a download link. So, when I hover over the download link, the real download URL can't be detected. When I click on the download link, the download takes place by going through the loading page, and it doesn't open a new tab or window. However, the URL shown in the address bar changes to the loading page URL. Is there a way to do this, so the loading page URL would not appear?

This is the script I am using in the loading page:

<meta http-equiv="refresh" content="2;url=http://domain.com/product.zip">
<script type="text/javascript">
url='http://domain.com/product.zip';
if(document.images) { top.location.replace(url); }
else { top.location.href=url; }
</script>

Thanks for help!
#loading #page #script
  • Profile picture of the author dotVince
    Hi Halmo,

    Maybe it would be best to start with what you are ultimately trying to accomplish. If you want to obfuscate the path to the zip file then the method you are using will not work. With a meta tag it is easy to get that link even if the address bar does not show the path.

    Give us a bit more detail and what your end goal is and I'm sure you will get lots of great advice. If my guess is right then using a script to get the file and stream it back with a random file name will likely be best.

    Thanks,

    Vince
    {{ DiscussionBoard.errors[3116292].message }}
    • Profile picture of the author halmo
      Originally Posted by dotVince View Post

      Hi Halmo,

      Maybe it would be best to start with what you are ultimately trying to accomplish. If you want to obfuscate the path to the zip file then the method you are using will not work. With a meta tag it is easy to get that link even if the address bar does not show the path.

      Give us a bit more detail and what your end goal is and I'm sure you will get lots of great advice. If my guess is right then using a script to get the file and stream it back with a random file name will likely be best.

      Thanks,

      Vince
      Thank you, Vince, for your answer. I am not sure what your sentence means that I highlighted in red, but I won't argue it , and will give you more information as requested.

      There is a download page with a download link on it to the zip file. Before I installed the loading page, the zip file downloaded from the page without opening a new tab or new window, and without changing the URL in the address bar. Right click is also disabled on the page, so nobody could right click on the download link to find out the URL. However, the download URL could easily be detected by hovering over it (because it shows in the bottom of the browser), or by looking at the source code,.

      So, what I want to do is make the download such that the actual download URL could not be detected.

      Thank you for helping!
      {{ DiscussionBoard.errors[3116357].message }}

Trending Topics