How .htaccess admincp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Greek76
    Senior Member
    • Sep 2006
    • 217
    • 3.6.x

    How .htaccess admincp

    Hey everyone just a quick question. I tried to htaccess protect my admin cp but it comes up with an internal server error...

    I used this code that I found from site security tips on here. I posted as is. The admin2 I left as is since Im the only to have access on their. What did I do wrong? Thanks

    order allow,deny allow from <example IP>
    allow from <admin2's IP>
    deny from all
    Acrow Host
  • cellarius
    Senior Member
    • Aug 2005
    • 4586
    • 3.8.x

    #2
    Take out the second line. <admin2's IP> is not valid, hence throws the error. You have replaced <example IP> with your own IP address? If not, that will lead to the same error.

    Make sure you really have a static, non-rotating IP address - else you won't be able to access your forum.

    Comment

    • Greek76
      Senior Member
      • Sep 2006
      • 217
      • 3.6.x

      #3
      Yes I have replaced it and my ip is not static. I tried it the way you suggested but I get this message. Thanks

      Internal Server Error

      The server encountered an internal error or misconfiguration and was unable to complete your request.

      Does vbseo interfere possibly?
      Acrow Host

      Comment

      • cellarius
        Senior Member
        • Aug 2005
        • 4586
        • 3.8.x

        #4
        No, vbseo would not cause this.

        Anyway: If you have a rotating IP, this is not for you. Every time your IP changes, you would have to edit the .htaccess, or you would be denied from entering AdminCP.

        Addendum: If you know your IP range, you can allow access from this range.

        If you want to implement this anyway, try this:
        Code:
        order allow,deny 
        deny from all
        allow from xxx.xxx.xxx.xxx
        Replace the x with your IP address.
        Last edited by cellarius; Wed 27 May '09, 4:41pm.

        Comment

        • Greek76
          Senior Member
          • Sep 2006
          • 217
          • 3.6.x

          #5
          What I meant about my ip is that it does not change sorry for the mistake.
          Acrow Host

          Comment

          • Jazzyname
            Member
            • Dec 2008
            • 85
            • 3.8.x

            #6
            can one just put in the resolve instead of the IP ?

            or the bind name? like cox.com

            Comment

            • Greek76
              Senior Member
              • Sep 2006
              • 217
              • 3.6.x

              #7
              Im suppose to upload the .htaccess file into my admin folder correct?
              Acrow Host

              Comment

              • cellarius
                Senior Member
                • Aug 2005
                • 4586
                • 3.8.x

                #8
                Originally posted by Jazzyname
                can one just put in the resolve instead of the IP ?

                or the bind name? like cox.com


                Originally posted by Greek76
                Im suppose to upload the .htaccess file into my admin folder correct?
                Yes.

                Comment

                • Greek76
                  Senior Member
                  • Sep 2006
                  • 217
                  • 3.6.x

                  #9
                  Thats exactly what where I uploaded it. I don't know can't figure out what the problem might be.
                  Acrow Host

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...