
Oleh karena itu dengan memanfaatkan sebuah file bernama .htaccess di dalam host Apache sangat dianjurkan bagi yang tidak mau kebobolan, kita tahu di dalam Apache server itu sendiri sudah ada pengaturan permissions atau sering juga disebut dengan CHMOD (change mode). Tetapi CHMOD saja tidak cukup karena manusia identik dengan kelalaian dan lupa dengan aturan yang dibuatnya sendiri. π
Kali ini saya ingin membahas tentang kegunaan .htaccess (hypertext access) untuk menolak akses langsung sebuah file tertentu oleh end user dari browser dan/atau tempat lain yang bisa mengakses file tertentu tersebut (.htaccess : File Access Denied).
Sering kita buat dan juga jumpai sebuah web application yang memakai sebuah nama file ‘config’ atau ‘configuration’ dengan berbagai macam bahasa pemrograman seperti PHP, umumnya digunakan sebagai penghubung dengan platform database yang dipakai. Nah, file dengan nama tersebut umumnya sering dipakai, padahal sebaiknya tidak karena mudah sekali ditebak. Untuk mencegah keteledoran agar tidak bisa diakses oleh publik umumnya file tersebut diberi permission yang ketat, tetapi awas, banyak juga yang lalai dengan hal ini.
Untuk membantu pencegahan agar tidak bisa diakses publik coba buat sebuah file .htaccess dengan cara membuka aplikasi Notepad lalu masukkan kode berikut:

Setelah itu simpan dengan Save as type: All Files dan beri nama .htaccess lalu upload ke folder di mana file yang tertera di dalam .htaccess berada. Dengan demikian file dengan nama yang ada di dalam .htaccess tersebut tidak bisa diakses bahkan di-download kecuali dengan priviliges (hak akses) tertentu. Selamat mencoba. π
341 pemikiran di “.htaccess : File Access Denied”
.htaccess File Access Denied is a thing that needs to be solve because file access denied means there is some thing wrong with the file and I think this is not a issue that should needs to be ignore.
Terima kasih untuk artikel lain yang besar. Mana lagi orang bisa mendapatkan jenis informasi sedemikian cara yang sempurna untuk menulis?
maybe there are some broken link..
Thats a very nice and so much informative article. I really impress with this article. I get many information from there. And now i often visit on that site. So please keep posting me such a informative article.
numpank tancep link ya π
makasih tipsnya
makasih tips untuk httaccess ini, sangat berguna banget!
Terima kasih nih tipsnya. Saya pernah juga bermasalah hanya cuman ternyata gara2 htaccess file
interesting post and there is a lot to fetch from here. i realy appreciate your work.
Is it possible to redirect people from a particular country? ie: I might want people who live in china to be recognised and automatically redirected to a chinese page, or people who libe in germany to be automatically redirected to a german page.
tips yg bermanfaat nih. langsung dicoba aaah..
The source code consists of the programming statements that are created by a programmer with a text editor or a visual programming tool and then saved in a file.
Thank you for useful information
The article contains a collection of valuable information and useful
Its always good to know about the nature of the problem as it is said that well defined problem is half solved. After reading this article, now I am feeling myself relaxed as if this thing happens, it will be treated well. Thanks for sharing useful tips here.
The File Access Denied, is an error that most peoples would have got and I think this is a good error to get while working, such information is really nice one to get solve it.
Hi semua orang. Topik yang menarik untuk sebuah blog. Saya telah membaca banyak blog dan forum belakangan ini. Beberapa benar-benar bermaklumat ada yang menghibur dan beberapa celah yang nyata atas. Saya harus mengatakan, pekerjaan yang hebat di blog ini, saya akan pastikan anda menyemak kembali lagi segera.
Its always good to know about the nature of the problem as it is said that well defined problem is half solved. After reading this article, now I am feeling myself relaxed as if this thing happens, it will be treated well. Thanks for sharing useful tips here.
Artikel yang menarik . . .
Salam kenal yach π
kapan2 silahkan berkunjung di blog saya yg sederhana ini :
Puisi Cinta
baru tahu kegunaan htaccess ternyata seperti itu, tapi aku masih bingung
bingung ngebacanya..
background psikologi bkin sya kurang mengeri soal artikel ini..
I admire the post created by you and would look for similar posts by you which would surely help us in one or the other ways. Thanq. Pls visit my portfolio lighting review site.
I just stumbled upon your blog and it is awesome.
Mantap, postingan yang bagus, Thanks tipsnya..
Thanks tipsnya yach mas π
menarik nih…
saya mau coba aplikasiin dulu
coba belajar pengkodean ahh..
ternyata sulit juga yah..
mungkn sdkit btuh bimbingn dri akang..
server apache tuh apa yah??
‘config’ ?? rasanya pernah denger??
ilmu yg sangat bermanfaat bro… sukses !
tansk info N tips saranya…..
Mantap Bro Infonya…
bgmana kalau yang ini mas ?
Order allow,deny
Deny from all
sory mas maksud saya yang ini :
<Files ~ “^.ht”>
Order allow,deny
Deny from all
</Files>
baru tahu nich kegunaannya ini, thanx utk sharingnya ya gan π
This is great post and efforts worth appreciation. Thanks for sharing brother.
I am impressed with the theme as well as contents of this post. Please keep on updating us with the same spirit.
masih bingung gan
posting yg lebih detail donk
This is the code that I have been searching for. You made my work easier. I try to search this one on the other website but they give me different code.
An annoying message is upon stumbling into a certain submission where you had it sent then resulting to an access error. It freaks out a person’s time and by having it post here I am truly glad to know this interesting tip here.
Poets and Poetry
Hey, very informative and interesting. Looks like you put a lot of effort and research into it. Keep up the good work!
Fascinating, I did translate this and I there then I did read and understood the said message you want us to get to know. I would love to see future posts regarding a follow-up on this topic.
oke bos…. trik nya berguna buat ane
sama andi sama, saya coba buat htacces redirect non www ke www ga bisa-bisa setelah googling sana sini baru tau kalo servernya yang bersmasalah dengn htacces jadi bingung
I am impressed with this post and it is full of information which are useful in nature.
Msi bingung gan…oz gak punya web sendiri gt……
I was very encouraged to find this site. I wanted to thank you for this special read.
I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.
Thanks for explanation, now I know where is the problem in my term paper
saya baru tahun tentang manfaat dari .htaccess, ternyata jika kita lalai sangat patal sekali ya…hmmm…]
Terimakasih banyak..
pengatahuan baru nih jadi nambah wawasan nih,,sangat bermanfaat sekali,makasih banyak kawan dan sukses trus,,,
keep blogging moga jadi ilmu yang berguna,,,
apa bedanya sama robots.txt ya??
Your informational blog is great resource for lots of peoples because its having nice advice, so please you can create more like these. thanks for your wonderful sharing
Much obliged, that enlighten, and most importantly, just in time. Just think, six years already in the internet, but I believe this is the first time I hear it.
Info yang mantaps gan, thanks ya.