SECURE WEBSITE GUNAKAN .HTACCESS PART 1


function .htaccess?
aku x reti nk terangkan cmne..
ok aku tunjuk kan file yg web yg xde htaccess dan yg ade htaccess.

1. web yg xde htaccess akan keluar index of.
macam dalam gambar.


boleh nampak file2 yg ade dlm folder web 2..

2. web yg ade .htaccess
akan jd mcm dlm gambar.


tutorial : 
1. korang copy code di bawah :

<FilesMatch ".(htaccess|htpasswd|ini|log|lic|pk|pl|sh|inc|bak|xphp|DATA)$">
Order Allow,Deny
Deny from all
</FilesMatch>

atau

<FilesMatch "wp-config.php">
Order Allow,Deny
Deny from all
</FilesMatch>

2. buat file .htaccess
buat kat notepad dan upload.
rename kn file .htaccess
bile upload akan jadi .htaccess.txt
dalam cpanel baru korang rename blk
jd kan .htaccess


3. kat file .htaccess tu. korang klik edit


copy code kt atas td di file .htaccess
salah satu code td.
lepas tu save.








thumbnail
About The Author

[ EXPLORING KNOWN AND THE UNKNOWN ]

0 comments