Home >Backend Development >PHP Problem >How to prohibit downloading in php

How to prohibit downloading in php

藏色散人
藏色散人Original
2020-11-24 10:12:372573browse

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".

How to prohibit downloading in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn