Results 1 to 2 of 2

Thread: Need .htaccess code to restrict IP from only one file

Hybrid View

  1. #1

    Need .htaccess code to restrict IP from only one file

    I need .htaccess code that will:

    Restrict a specific IP from a specific page.
    Allow that IP on any other pages but the restricted one.

    I already tried this and it does not work:

    Code:
    <Files submit.php>
    Order Allow,Deny
    deny from 1.2.3.
    deny from 1.2.
    allow from all
    </Files>
    Does anyone know a better way, maybe using mod_rewrite?

  2. #2
    After rebuilding Apache, the code I posted in the first place started working. No problem now.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •