Poll
Feedback
Geini wrote:
Danke für die Informationen zu den Captchas und die schönen beispiele!! so brauchte ich nicht lang suchen und hab dazu noch eine Super erklärung + download gefunden....
more...
©1996-2012
Michael Rosenbaum Ratzeburg - Germany
Advert
Most wanted
Atomic Clock Bios BIOS Beep tones BIOS Boot CD I BIOS Boot CD II BIOS Boot Diskette BIOS Boot Logo BIOS Boot USB Stick BIOS EPA Logos BIOS ID BIOS Passwords BIOS Software BIOS Update instruction Blog Bios Boot Logo Feedback PC Professionalist wanted ! Mainboard manufacturer Programs Ratzeburg
Domains
Domains for sale!
Short and catchy domains are very rare.
9b9.de
pik7.net
rapidlinks.de
rapidlinks.net
rapidlinks.eu
Show available domains...
Password protection for website directories with .htaccess and .htpasswd
The following Password generator creates a directory protection using .htaccess for websites, which are running under the Apache Web server. As a result, a dialog box appears and prompts to enter a user name and password, everytime a visitor tries to have access to this protected directory, or to a file inside this directory. The condition is that your provider allows you the use of .htaccess - what is normally the case.
Step 1:
Create a text file called .htpasswd (don't forget the dot!) inside the directory, which you would like to protect and insert the following generated text into this file. You can choose between 2 types of encryption (DES and MD5) if one type do not work in your system:
Hint: you can add more than one user into the .htpasswd. Simply repeat to enter User name and Password and press the button Generate.
Step 2:
Create a text file called .htaccess (don't forget the dot!) inside the directory, which you would like to protect and insert the following content:
Don't forget to insert your real path and user name(s)!
Explanation:
Step 3:
Use your FTP-software to change the file permissions of .htaccess and .htpasswd with CHMOD 644.
Determine the real path with PHP:
Create a text file called phpinfo.php and insert the following content:
Copy the file to your webspace and execute it in your browser. The PHP-script will show a long configuration list. Find the line which starts with DOCUMENT_ROOT. That's the real path to the root(!) directory of your webspace. e.g.: /var/www/domain/flazh/httpdocs.
Now you have to attach all subdirectories and the file .htpasswd to this path. e.g.: /var/www/domain/flazh/httpdocs/protecteddirectory/.htpasswd
quiero mas!!! muy buena la pagina saludos desde argentina
jorge 18.Dec.2008 03:02