Redirect question

Discussion in 'HTML & Website Design' started by mate_pl, Jan 3, 2009.

  1. #1
    Happy New Year to all of DP members!


    Please help me make the following (will try to be as short as possible):

    1. will put .exe (or any other) file for download on my site
    2. want to make the following: when person puts direct link on his site on file I am hosting on my server - I want other html to be shown. This is really common on File download sites such as Betanews or Majorgeeks etc.
    For example, when you try downloading XP Codec pack from vendor site you are given the following link - http://www.xpcodecpack.com/dl/XP-Codec-Pack-2.4.6.exe. When you copy/paste it to a browser you get the following - http://www.xpcodecpack.com/error (I don't have anything with this particular software, it is just an example). All you get is the message: "You have tried to download XP Codec Pack, but an error occured. Your session is empty, you need to enable cookie to download our files. Please return to download page"

    I believe this is easy to make, but I really don't know how to do it...

    My site is in pure HTML...


    Thank you very much in advance!
     
    mate_pl, Jan 3, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    You will need the pages in php
    Check referrer with $_SERVER['HTTP_REFERER']; and if its different than ur domain give that message
     
    crivion, Jan 3, 2009 IP
  3. mate_pl

    mate_pl Active Member

    Messages:
    1,372
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Thanks crivion!

    No chance to make it in HTML?
     
    mate_pl, Jan 3, 2009 IP
  4. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #4
    with pure HTML absolutely no chance
     
    crivion, Jan 3, 2009 IP
  5. MikeHayes

    MikeHayes Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    MikeHayes, Jan 4, 2009 IP
  6. mate_pl

    mate_pl Active Member

    Messages:
    1,372
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Thanks for the tip Mike, but when you download the file you may see the exact URL of the file (at least when downloaded with Firefox) and after that you may put link on your site to download file from other peoples server.
    To make this simplified, I don't want other people to put link on the file which is on my server without, at least, showing my download page or software review page. In that case, all I got is lost web space.
     
    mate_pl, Jan 4, 2009 IP
  7. MikeHayes

    MikeHayes Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi again,

    Here's a demo click on this link

    http://www.mike-hayes.nl/ultimatesupertip/

    This is a "cloaked" link which sends you to another page/place but you only see the original url. This is what you wanted I thought.

    And I set up a test for you. Click on this link:

    http://www.mike-hayes.nl/test/

    The document you download is on a completely different site - mike-hayes.com. By the way it's an article I wrote, quite safe.

    Any more ??'s let me know.

    Mike
     
    MikeHayes, Jan 5, 2009 IP
  8. gRichy

    gRichy Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    using co.cc for your download page...its free !
     
    gRichy, Jan 5, 2009 IP
  9. Lord

    Lord Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #9
    you can also use .htaccess file to do that
     
    Lord, Jan 5, 2009 IP
  10. mate_pl

    mate_pl Active Member

    Messages:
    1,372
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #10
    Hi Mike!

    I know how to redirect DL but in this case I may see that origin URL is "http://www.mike-hayes.com/tester.zip". The fact is that I may put this link on my website or copy/paste it in browser and download it.

    In my origin thread I've put link "http://www.xpcodecpack.com/dl/XP-Codec-Pack-2.4.6.exe" as an example. If you put it in your browser's address bar you get error page "http://www.xpcodecpack.com/error". And this is what I really need...

    I've made redirect simply by using "<meta http-equiv="REFRESH" content="1;url=http://www.XYZ.com/aaa.exe">" where content is number of seconds for DL page to be refreshed. But after downloading this aaa.exe file you may just put "http://www.XYZ.com/aaa.exe" in address bar or competitor may use it on his website and safely offer DL link as his own, and that's what I wanted to avoid...
     
    mate_pl, Jan 5, 2009 IP
  11. mate_pl

    mate_pl Active Member

    Messages:
    1,372
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #11
    gRicky, Lord - please refer to the post above and advise if your suggestions may resolve what I needed?

    Thank you!!!
     
    mate_pl, Jan 5, 2009 IP