Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » Update Via email » Protected Folder

Protected Folder

Simpan ke dalam Folder yang akan di protect dengan nama File .htaccess

*. Kalo Yang ini Buat Proteksi Folder /home/bla..bla/Public_html/bla..bla..

Order Allow,Deny
Deny from all
<Files ~ “\.(css|jpe?g|png|gif|js|xml|swf|zip|jpg)$”>
Allow from all
</Files>

*. Kalo yang ini buat protect Folder wp-content/uploads/

IndexIgnore *
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?myprotectedmemberssite\.com/ [NC]
RewriteCond %{REQUEST_URI} !hotlink\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx) [NC]
RewriteRule .*\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx)$ http://ikc.co.id/ [NC]

Filed under: Update Via email

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>