Home > Article > Backend Development > How to prohibit downloading in php
How to prohibit downloading in php: First find and open the "Apache\conf\httpd.conf" file; then add code such as "Order Deny,Allow Deny from all".
Recommendation: "PHP Video Tutorial"
The operating environment of this tutorial: Windows 7 system, PHP version 5.6, This method works for all brands of computers.
How to prohibit downloading of php:
1.php file will be run as a script and will not be downloaded.
2. Unless actively Echo or print output "database information" before you can see it.
3. If it is an *.inc file, it is not executable and may be downloaded. You can use this method to limit downloading and reading, and modify Apache \conf\httpd.conf file, add the following code:
Order Deny,Allow Deny from all
is filtered...
The above is the detailed content of How to prohibit downloading in php. For more information, please follow other related articles on the PHP Chinese website!