htaccess need file blocking

#1
settings fixed.
There is only one problem.
public_html/resources/views/web/inc/header.blade.php --> no-cache? is it done?
need file blocking
how to

.htaccess.php

<IfModule LiteSpeed>
RewriteCond %{ORG_REQ_URI} !/login
RewriteCond %{ORG_REQ_URI} !/register
RewriteEngine On
RewriteRule .* - [E=cache-control:max-age=120]
</IfModule>
 
#2
Hello ms_dizzy_

You could use .htaccess file to block your file:YOUR_FILENAME


/public_html/.htaccess

method 1:
RewriteEngine On
RewriteRule (^|/)FOLDER/YOUR_FILENAME - [F]


method 2:
<Files "YOUR_FILENAME">
Order Allow,Deny
Deny from all
</Files>
 
Last edited:
Top