Jump to content
sleed

Cum sa securizezi un Folder cu .htpasswd

Recommended Posts

Cum securizezi un folder cu .htpasswd ?

Htpasswd Generator - Create a htpasswd password In primu rand alegem un nume si o parola care sa fie encryptata, apoi le salvam undeva sa le avem :!

Avem urmatorul VHOST :

<VirtualHost *:80>
ServerAdmin office@site..
ServerName site
Redirect permanent /one http://site
DocumentRoot .....
<Directory ".....">
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory locatia care sa fie protejata gen: /var/www/admin>
AuthName "Module Protection"
AuthType Basic
AuthUserFile "/locatie/locatie/.htpasswd"
Require valid-user
</Directory>

In .htpasswd adaugam parola creata aici :

Reload apache @ working

!//Nota : Sa aveti RewriteEngine On in .htaccess !!

O sa va deie ca aici:

http://postimg.org/image/92pl84xfj/

Tutorial 100% made by sleed from RST!

Copyright daca postati in alta parte

Link to comment
Share on other sites

Cum securizezi un folder cu .htpasswd ?

Htpasswd Generator - Create a htpasswd password In primu rand alegem un nume si o parola care sa fie encryptata, apoi le salvam undeva sa le avem :!

....

Pentru a nu bantui pe site-uri, puteti genera parola cu utilitarul 'htpasswd' care vine default in pachetul httpd/apache.


marian@pluto:~$ htpasswd -nbd sleed rstpass
sleed:nsAjZ1VFwUIOY

Alt exemplu:


marian@pluto:~$ htpasswd -c .htaccess sleed
New password:
Re-type new password:
Adding password for user sleed
marian@pluto:~$ cat .htaccess
sleed:$apr1$0qx91i9w$XX21EuqD.bPeilCT4wpPl.
marian@pluto:~$

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...