Klasör Erişimini Engellemek

Apache sunucusu üzerindeki sitelerimizde .htaccess dosyasında yapacağımız ufak değişiklik ile klasörlerimizi gizli tutup erişimi engelleyeceğiz.


Eğer tüm dosyalarımıza erişimi engellemek için oluşturduğmuz .htaccess dosyasına;

#deny all access
deny from all

bu kodu yazdığınız takdirde klasörlere erişim engellenecektir.

Aynı şekilde bu işlemi belirli bir ip veya ip aralığı için yapmak isterseniz;

#deny all access
deny from all
allow from 85.101.22.45 # sadece tek ip adresi
allow from 85.101.22.12/80 # arası ip adresi

Ayrıca tek klasör içni yapmak isterseniz;

<Files ornek.html>
Order allow,deny
Deny from all
</Files>

Şeklinde yapabilirsiniz.

815 Responses to “Klasör Erişimini Engellemek”

  1. family survival course Says:

    Hello there, I do believe your web site might be having browser compatibility problems. Whenever I take a look at your blog in Safari, it looks fine however, when opening in I.E., it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, fantastic blog!

  2. big tits Says:

    Next time I read a blog, Hopefully it doesn’t disappoint me as much as this one. After all, I know it was my choice to read, nonetheless I actually believed you’d have something interesting to talk about. All I hear is a bunch of complaining about something you can fix if you weren’t too busy seeking attention.

  3. enail Says:

    Howdy! This blog post couldn’t be written any better! Reading through this article reminds me of my previous roommate! He always kept preaching about this. I will forward this information to him. Fairly certain he’ll have a very good read. Thanks for sharing!

  4. I thought about this Says:

    My internet surfing seem full.. thanks. Loving the piece of writing.. regards I value you discussing your viewpoint.. Is not it terrific after you find a very good post?

Leave a Reply


Warning: Undefined variable $user_ID in /home/bursa/public_html/wp-content/themes/silveray/comments.php on line 147

 Characters available