Author Topic: How can I protect my files ?  (Read 2830 times)

0 Members and 1 Guest are viewing this topic.

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
How can I protect my files ?
« on: December 19, 2009, 03:03:06 PM »
Hi ..

How can I protect my files ?

example :

http://www.xn--mgbbfc7j2ap.com/templates/oo9/home.html

and my files .

http://www.ff11ff.com/topics/templates/tupicss/home.html

how i can do like this ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How can I protect my files ?
« Reply #1 on: December 19, 2009, 06:14:26 PM »
in templates/ folder add .htaccess with the following code inside:
Code: (.htaccess) [Select]
<Files ~ "\.(jpg|jpeg|gif|png|css)$">
  order allow,deny
  allow from all
</Files>

deny from all
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How can I protect my files ?
« Reply #2 on: December 19, 2009, 07:42:12 PM »
ooh... thank u alot my friend