Prevent file execution when opened in browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajmerasunny
    New Member
    • Mar 2008
    • 4

    Prevent file execution when opened in browser

    Hi,

    I have a requirement in which I have Prevent code from being executed when opened in browser. To put it in simple words, consider the following scenario
    I have a locale.properti es file present in webserver.
    if i tries to open this file from browser, instead of displaying the content, it should popup a dialog-box asking user to open/save/cancel.

    Any help in this regard will be appreciated. Let me know if my requirement is not clear.


    Thanks
    sunny
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Are you clicking a link to the file or putting the address of the file directly in the URL bar?

    If it is a link, it might download, otherwise you can right click and save.

    Regards,

    Jeff

    Comment

    Working...