how can i do this ? page.html and file.exe

Discussion in 'HTML & Website Design' started by diego018, Sep 11, 2015.

  1. #1
    Hi how can i do this ?

    is it possible to have page.html and file.exe:

    file.exe can be downloaded if clicked from page.html, but if you try to download directly the .exe it redirects you to page.html ?
     
    diego018, Sep 11, 2015 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    kk5st, Sep 11, 2015 IP
  3. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #3
    Don't serve it as link, make it a response of some server method that will check the client url first.
     
    webcosmo, Sep 15, 2015 IP
  4. geoffrey foggon

    geoffrey foggon Member

    Messages:
    71
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #4
    i believe you want to stop a direct download ie yoursite.com/download/product.exe as appossed to yoursite.com/download/page.html. To do this you will need a download manger script to protect the download, these mask the location of the download or protect it by requiring them to join your download site. check out http://www.hotscripts.com/category/scripts/php/scripts-programs/file-manipulation/download-systems/
    for some good free scripts that will do this job.
     
    geoffrey foggon, Sep 16, 2015 IP
  5. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #5
    You can also block or redirect any url containing .exe in pre request handler.
     
    webcosmo, Sep 16, 2015 IP