Cegah Hacker dengan Write Protect

Salah satu cara mencegah agar web anda tidak diserang hacker adalah dengan write protect, yaitu memproteksi hosting agar tidak bisa di edi...

Salah satu cara mencegah agar web anda tidak diserang hacker adalah dengan write protect, yaitu memproteksi hosting agar tidak bisa di edit atau ditambah file. Cara ini lumayan efektif karena kebanyakan hacker biasanya menyisipkan file-file tertentu ke dalam hosting. Dengan write protect, tidak ada seorangpun yang bisa mengubah isi file termasuk root.

Benarkah hosting tidak bisa di edit termasuk oleh ROOT ?

Ya.. Benar sekali. Dengan cara ini siapapun tidak bisa melakukan proses editing pada hosting anda termasuk root, sampai proteksi dikembalikan ke kondisi normal. Untuk mencegah serangan hacker, root memasang proteksi write protect. root dan siapapun tidak akan bisa melakukan pengeditan file hosting, sampai root mwngembalikan ke kondisi normal. Cara Memberi proteksi write protect Untuk melakukan write protect, cukup diberukan perintah ini melalui perintah SSH:
root@bumblebee [/home/username]# chattr -Rf +i public_html
Penjelasan:
chattr : Perintah untuk mengubah attribut file atau folder
-Rf : Lakukan perintah ke semua file dan folder dibawahnya, tanpa harus mengkonfirmasi kembali
+i : Tambahkan write protect public_html : folder yang di proteksi
Lakukan cara ini jika Anda vakum atau lama tidak akan melakukan posting atau editing pada web Anda. Cara mengecek apakah statusnya write protect atau tidak Untuk memeriksa apakah sebuah folder/ file sudah ter-writeprotect atau belum, cukup diberukan perintah lsattr melalui perintah SSH:
root@bumblebee [/home/username]# lsattr
-------------e- ./logs
-------------e- ./ssl
-------------e- ./mail
-------------e- ./tmp
lsattr: Operation not supported While reading flags on ./access-logs
-------------e- ./public_ftp
lsattr: Operation not supported While reading flags on ./www
-------------e- ./etc
----i--------e- ./public_html
root@bumblebee [/home/username]#

Cara menghilangkan proteksi write protect

Untuk menghilangkan proteksi write protect, cukup diberukan perintah ini melalui perintah SSH:
root@bumblebee [/home/username]# chattr -Rf -i public_html
Penjelasan:
chattr : Perintah untuk mengubah attribut file atau folder
-Rf : Lakukan perintah ke semua file dan folder dibawahnya, tanpa harus mengkonfirmasi kembali
-i : Hapus write protect public_html : folder yang di proteksi

COMMENTS

Nama

android,2,Aqidah,1,Belajar Bootstrap,1,bisnis internet,1,bosan jadi pegawai,1,Business,4,CDN,1,centOS,2,Dedicated Server,5,desain web,2,desain web gratis,1,Fakta Unik,2,gratis,1,hacker,1,herbal,6,herbal obat kanker,1,hosting gratis,1,humayraa,1,internet cepat,1,iphone,1,Islam,3,jadi wirausahawan,1,kejadian unik,2,Kesehatan,6,kiat sukses bisnis di internet,1,Kuliner,1,Lingkungan,1,Linux,7,logo design,1,manfaat mengkudu,1,Manhaj,1,mySQL,1,News,5,obat kanker,3,pengobatan alternative,3,puasa,1,Ramalan,1,review situs,1,security,1,sirsak,1,SSH,2,System Admin,3,Teknologi Informasi,19,tips,2,tips memulai usaha,1,usaha sewa mobil,1,Video,5,VPS,6,web desain,3,web gratis,2,web murah,1,Web Panel Alternative,2,webdesign,3,webhosting,6,webhosting gratis,2,Whatsapp web,1,wordpress,2,
ltr
item
Prihartanto's Blog: Cegah Hacker dengan Write Protect
Cegah Hacker dengan Write Protect
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYBl-V_vQydnWedPt6PR0F_f1rYY9FHDI_A9QnAycKehmYYiJ0lANw8XU_6GL2j1hXX0cBgB2xPz1U6tzPQ-RwF7B04lO9bb1CtKRrn4iVv6hruxlnaqHKhKRqE22Ra9hyLz2PKMbpAQ/s1600/domain-hosting-murah-bestariwebhost.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxYBl-V_vQydnWedPt6PR0F_f1rYY9FHDI_A9QnAycKehmYYiJ0lANw8XU_6GL2j1hXX0cBgB2xPz1U6tzPQ-RwF7B04lO9bb1CtKRrn4iVv6hruxlnaqHKhKRqE22Ra9hyLz2PKMbpAQ/s72-c/domain-hosting-murah-bestariwebhost.jpg
Prihartanto's Blog
https://prihartanto.blogspot.com/2015/06/cegah-hacker-dengan-write-protect.html
https://prihartanto.blogspot.com/
https://prihartanto.blogspot.com/
https://prihartanto.blogspot.com/2015/06/cegah-hacker-dengan-write-protect.html
true
8035492995885756331
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy