How to prohibit downloading in php

藏色散人
Release: 2023-03-07 19:40:01
Original
2472 people have browsed it

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
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!