Having a listable directories on your site sometimes is useful. However, some times it can be considered a security issue. No, matter which option you prefer you can control this behavior of your site using 1 simple line: Options +Indexes The above line enables Directory listing. Options –Indexes The above…
Continuar leyendoEtiqueta: htaccess
What is .htaccess
What is .htaccess The .htaccess file is a simple text file (in ASCII format). In general you can use, .htaccess files to change some configuration directives of the apache web server. However, .htaccess files can do lot more than simply change some settings of your web server as you will…
Continuar leyendoHow to create a password for a .htpasswd file using PHP
A user emailed me and asked how to create a password for a .htpasswd file using PHP. It is actually very simple. Below is a PHP script that generates a password for .htpasswd from the clear text password stored in $clearTextPassword. Please note: For Apache servers running on Windows you…
Continuar leyendo