Thiet ke website | Web design Company | Thư viện Webmaster | Designer

THƯ VIỆN WEBMASTER: Trang chủ Tutorial Security Bảo mật cho trang quản trị administrator bằng mật khẩu

Bảo mật cho trang quản trị administrator bằng mật khẩu

(0 votes, average 0 out of 5)

Bạn muốn ngăn chặn việc truy cập trái phép vào vùng quản trị, trang administrator (phần backend trong Joomla). Có nhiều giải pháp để thực hiện việc này. Bài viết này xin giới thiệu một cách khá đơn giản nhưng lại hiệu quả với mục đích "Tăng cường thêm một rào cản trước khi truy nhập được file index.php". Áp dụng trên Hosting chạy Apache Server.

 

Cách thực hiện:

Copy đoạn mã sau và đặt vào đầu của file "index.php" trong thư mục "Joomla\administrator\"

<?php
$name='0f31d97eb6d7cb094c749315bf503eb1';
$pass='0f31d97eb6d7cb094c749315bf503eb1';

if (!isset($_SERVER['PHP_AUTH_USER'])
|| md5($_SERVER['PHP_AUTH_USER'])!==$name
|| md5($_SERVER['PHP_AUTH_PW'])!==$pass)
{
header('WWW-Authenticate');
header('HTTP/1.0 401 Unauthorized');
exit('<a href="http://thuvienwebmaster.com/">THƯ VIỆN WEBMASTER - Source | Script | Template | Graphic | SEO | Security</a> : Access Denied');
}
?>

Trong đó

username = thuvienwebmaster
password = thuvienwebmaster


Công cụ tạo mã hóa MD5: http://www.whatsmyip.org/hash_generator/


busy
 

ĐĂNG KÝ NHẬN TIN

Điền địa chỉ email muốn nhận tin mới từ Thư Viện Webmaster:

Donate US

- Ủng hộ THƯ VIỆN WEBMASTER bằng tin nhắn điện thoại. Soạn tin SMS TVW gửi đến 8717 hoặc 8617

- Ủng hộ qua Ngân Lượng

- Donate US via Paypal

THỐNG KÊ THÀNH VIÊN

Total Members : 5118
Latest Member : hovie984
Members Online : 1

THỐNG KÊ TRUY CẬP

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterHôm nay187
mod_vvisit_counterHôm qua4088
mod_vvisit_counterTuần này13932
mod_vvisit_counterTuần trước19675
mod_vvisit_counterTháng này74573
mod_vvisit_counterTháng trước81984
mod_vvisit_counterTất cả2244732

Đang trực tuyến: 55
IP: 38.107.179.220

MỚI BÌNH LUẬN

Bộ icon chim cánh cụt.
Sao tui kô down dc vậy admin.. Có link
Spring & Summer Landscapes Vector
link bộ này còn k vậy ad
40 Spa HD Wallpapers
Photo Trẻ em- Children 5
link die rồi vui lòng cập nhật lại
Source code xổ số, thống kê, dò số, soi
hix.admin xem the nao sao lai chuyen lin
PSD GFX VOL 34
this link die
AITOC - Shop by Brands
could you please reupload the extension?
Kryn.CMS Beta 0.8
Link die roài !
aheadWorks - AJAX Cart Pro
link broken
aheadWorks - Advanced Menu
Link broken
AITOC - Custom Options Templates
Link broken
aheadWorks - Automatic Related Products
Link broken
aheadWorks - Advanced Reports
Link broken
Hỗ trợ kỹ thuật
Kỹ Thuật
Administrator
Administrator
Support Online
Quảng Cáo
Support Online
Tài Khoản
Administrator
Administrator
Tin nhắn giấu số
SMS Hider
Dành cho thành viên
Đăng ký thành viên
Nạp Mana vào tài khoản
Thông báo từ BQT

Hướng dẫn nạp Mana
Nạp Mana bằng tin nhắn SMS
Nạp Mana bằng card điện thoại
Nạp Mana bằng cổng TTĐT Paypal
Nạp Mana bằng CK ngân hàng


Follow us on Twitter   Follow us on Facebook   Feed burner   Follow us on Google Buzz   Follow us on Stumblerupon   Follow us on Delicious