hi, stop publish it thats the only way. Html that server sends to the browser can be downloaded. Thats how it works
Could you be more specific as to what you want to achieve? Becoz anything that you show to your visitors over the browser - the source code (html) can be viewed. There are some encrypting techniques as well but the same could be decrypted.. Try password protecting the web page by granting access only to visitors who are allowed to view the web page in context. If this is for a "file" like word document, pdf or video you could store the file outside your web tree and use php for retrieval/download.
If you use php,put php code in pages with .php extension.Html source code must be visible for search engines.
Anything anybody can see online can be copied. All you can do is make it a little more difficult to do. One very easy change is to prevent the use of right clicks to copy and save. You can do this by changing your html <body> tag to <body oncontextmenu="return false;">
php files can't be downloaded. only their outputted html can be seen. if you're trying to prevent html files from being downloaded, there's a few tools out there that let you hide your html code. can't think of any off the top of my head, but try googling for them.
any server side script can not be downloaded unlike client side , are you trying prevent peoples form downloading your streams?
do you mean prevent page from being downloaded or file from being downloaded? if its file there are dozens of way to do it.if its page i guess hardly anything can be done.Please be more clear and specific so that we can help you out!! Thanks