php - How to not allow users(or hackers) to download a file directly from web server? -


If someone knows the link to my page or just made an impression, then this is a general assumption and if You can add this link to DAP or other Donolod Manager, download this file, inside the source code.

I want to stop the other from stealing my code in this manner, is there any way to do it?

Your server is configured incorrectly when Apache is running, if you have an .htaccess file Try adding the follwoing line in the root (or public_html) folder and see if you start parsing the PHP file properly instead of returning the source code.

  AddHandler application / x-httpd-php .php  

Comments