Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/05/2007, 00:50
Avatar de lbenz
lbenz
 
Fecha de Ingreso: marzo-2003
Ubicación: Haedo
Mensajes: 445
Antigüedad: 21 años, 10 meses
Puntos: 4
Re: sencillo sistema de contraseñas.

tengo los codigos que me puso


..Generated Code

Step 1: Insert the below code into your .htaccess file, and upload this file to the directory you wish to protect (or which the files you wish to protect is under):
.htaccess:
AuthName "Restricted Area" AuthType Basic AuthUserFile /home/mysite/.htpasswd AuthGroupFile /dev/null <Files index2.php> require valid-user </Files>

Step 2: Save the below code into a file called .htpasswd, and upload this file to the location as specified in the "AuthUserFile" line above. It contains your username(s) and encrypted password(s). Important: .htpasswd should be put in a non public folder, such as directly above your public HTML folder, to prevent visitors from viewing this file in the browser.
.htpasswd:
pper:AdCpP0DYwZp16 leobenz:z9AbeyY/3q95A

And you're done! Be sure that you've uploaded both files in ASCII, and not binary format



ahora que hago.. que tipo de archivos son, jamas trabaje con apache. si te molesto mucho, decime, no hay drama.

desde ya muchas gracias
__________________
que fea firma que tenia... prefiero tener esto