ciao ho creato questo file .htaccess
htaccess
nel file di cnfig di apache:codice:AuthType Basic AuthUserFile C:\Programmi\Apache Group\Apache2\htdocs\php\.htaccess AuthName "CARTELLA CON RESTRINZIONE" <LIMIT GET POST> required valid-user </LIMIT>
poi con il file htpasswd.exe ho creato un utente con il comando htpasswd -c userauth nome utentecodice:# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride AuthConfig
ma quando mi reco nel percorso con il browser mi fa entrare senza immettere credenziali
il percorso in cui si trova il file .htaccess è:
C:\Programmi\Apache Group\Apache2\htdocs\php\.htaccess

Rispondi quotando