Want to Protect Files

php_value mbstring.http_input auto
php_value date.timezone America/New_York
Options +MultiViews
RewriteEngine on

# For .php & .html URL’s:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC,L]
RewriteRule ^([^.]+)$ $1.html [NC,L]

# Prevent direct access to PHP files
<FilesMatch "\.php$">
		
# 'https://dopenews.in' 
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.php\ HTTP/
RewriteRule .* - [F,L]
</FilesMatch>

Rightnow I am Using These Rules But when i Tries To Access That file Without Removing Extention i can Access That so i dont wanna use that i want to Protect for Its Securities reasons

EXAMPLE MY FILE NAME IS -
(www.dopenews.in/submit.php) if i visit dopenews.in/submit it gives access So i want to Protect Both without Extension and With Extension also thats the Point.

3 posts were merged into an existing topic: Some Problem with htaccess