- Joined
 - Oct 22, 2021
 
- Messages
 - 123
 
- Points
 - 38
 
Reputation:
All I did.
The .htaccess file is created.
The .htpasswd is created.
Both files are in the root directory of the website.
Now the question for me is. How can I password protect the area: "mysite.tld/install"?
My entry in the .htaccess file
	
	
	
		
I can always access this area without a password. What am I doing wrong?
Example:
I want to set this area password:
https://enxf.net/install/index.php?upgrade/
	
		
			
		
		
	
			
			The .htaccess file is created.
The .htpasswd is created.
Both files are in the root directory of the website.
Now the question for me is. How can I password protect the area: "mysite.tld/install"?
My entry in the .htaccess file
		PHP:
	
	AuthName "SecurityProtection
AuthType Basic
AuthUserFile path-to-your-website-root
<FilesMatch "/install.php">
require valid-user
</FilesMatch>
	I can always access this area without a password. What am I doing wrong?
Example:
I want to set this area password:
https://enxf.net/install/index.php?upgrade/