• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Help Hoi cach gan matkhau cho file php

Linkerpt

New Member
Adm biet giup voi.them ma j.

----------> Bổ sung bài viết lúc 12:47 PM <----------> Bài viết trước lúc 12:43 PM <----------

Vd nhu vao 1 file no yeu cau user hay pass y.
 
Lần sau không dùng ngôn ngữ teen nhé
Thêm đoạn code vào sau

Code:
<?php

Code:
$name='724ff559a2274a8c23b06e8f34e6584e';
 $pass='e10adc3949ba59abbe56e057f20f883e';
 if (!isset($_SERVER['PHP_AUTH_USER']) 
|| md5($_SERVER['PHP_AUTH_USER'])!==$name 
|| md5($_SERVER['PHP_AUTH_PW'])!==$pass) 
{
 header('WWW-Authenticate: Basic realm="Mat Khau Cap 2"'); 
header('HTTP/1.0 401 Unauthorized'); exit('tuoitreit.vn : Sai pass roi di cho khac choi nha'); 
}

Trong đó : 724ff559a2274a8c23b06e8f34e6584e và e10adc3949ba59abbe56e057f20f883e là user và pass đc mã hóa md5

Các bạn có thể thay đổi 2 giá trị MD5 này bằng các công cụ mã hóa md5
Ví dụ trang mã hóa của SVIT:



http://tools.sinhvienit.net/md5/
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top