Answer the question
In order to leave comments, you need to log in
How to disable the display of a php page in the browser, which is located in the directory, but not disable the php file itself?
There is an authorization file login.php and a file located in the scripts/script.php directory. The form submission goes from the login.php file to the scripts/script.php file. I wanted to prevent the browser from viewing the scripts/script.php page by writing the following code in .htaccess:
<FilesMatch ".(htaccess|htpasswd|ini|php|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
Answer the question
In order to leave comments, you need to log in
I didn’t really understand the meaning, but apparently it’s about adding php files to check ala first
<?php defined('SECRET_KEY') or die('No direct access allowed.');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question