Preventing access for just one file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pedja
    Senior Member
    • Mar 2004
    • 329

    #1

    Preventing access for just one file

    I have need to prevent access tooen file from all IP-s but few. It is a must that file is located in root of the site and other files should be accessible as usual.

    Is i tpossible on Dathorn server?
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    How about something like:
    Code:
    <Files script.php>
        Order Allow,Deny
        Deny from all
        Allow from 10.1.2.3
    </Files>
    Which would go in the htaccess file.
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • Pedja
      Senior Member
      • Mar 2004
      • 329

      #3
      I thought it is something like that
      Great, thanks man!

      Comment

      Working...