Way to only allow certain IP access a folder ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Doctor Dre
    Too lazy to set a custom title
    • Jan 2001
    • 51692

    #1

    Way to only allow certain IP access a folder ?

    I want only couple people to be allowed to hit some files ... how do I only allow them and not others ? I'Ve already tried

    <limit get post>
    order deny allow
    deny from all
    allow from xxx
    </limit>

    but it gives me a server error .
    Originally posted by rayadp05
    I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
  • smack
    Push Porn Like Weight.
    • Mar 2002
    • 10652

    #2
    couldn't you just put a password on the folder?
    Cry havoc and let slip the dogs of war.

    Comment

    • Doctor Dre
      Too lazy to set a custom title
      • Jan 2001
      • 51692

      #3
      Originally posted by smack
      couldn't you just put a password on the folder?
      Nop wouldn't work
      Originally posted by rayadp05
      I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?

      Comment

      • Project-Shadow
        Confirmed User
        • Feb 2003
        • 7340

        #4
        order deny,allow
        deny from all
        allow from 123.123.123.123

        Thats how it should look.

        Comment

        • fuzebox
          making it rain
          • Oct 2003
          • 22372

          #5
          Your htaccess wasn't setup properly if using an htpasswd file "didn't work"...

          You can also use mod_rewrite and match the rewritecond against REMOTE_ADDR...

          Comment

          • Doctor Dre
            Too lazy to set a custom title
            • Jan 2001
            • 51692

            #6
            Originally posted by fuzebox
            Your htaccess wasn't setup properly if using an htpasswd file "didn't work"...

            You can also use mod_rewrite and match the rewritecond against REMOTE_ADDR...
            err I mean it won't work with what I'm doing . I don't want no password beeing asked
            Originally posted by rayadp05
            I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?

            Comment

            • Doctor Dre
              Too lazy to set a custom title
              • Jan 2001
              • 51692

              #7
              I think I got it working
              Originally posted by rayadp05
              I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?

              Comment

              Working...