Restricting access by IP in htaccess not working - any ideas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheDA
    Confirmed User
    • May 2006
    • 4665

    #1

    Restricting access by IP in htaccess not working - any ideas

    I have an admin directory restricted to my ISP host

    This has worked great for months, now it doesn't and it locks me out.

    From what I can see, when I confirm the host name being used, this has changed. I have added the new host name to the htaccess but still not working.

    Depending on the service I use to check the ISP host name I get 2 different results, boith of these are added to the htaccess.

    I can add the actual IP address to htaccess and it works, but why is host name not working?

    What have I missed? Is this a cache issue somewhere do you think?

    Code:
    <Limit GET POST PUT>
    order deny,allow
    deny from all
    allow from .originalhostname.com
    allow from .newhostname.com
    </Limit>
    Sharleen Spiteri - 1989 - In The Ass
  • nickutis
    Confirmed User
    • Dec 2002
    • 719

    #2
    maybe your server see you only as IP and can't resolve it to hostname ?

    Comment

    • fris
      I have to go potty
      • Aug 2002
      • 55719

      #3
      ya do it by ip address
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      My Latest Theme

      Comment

      • arachnO
        Confirmed User
        • Jan 2004
        • 1327

        #4
        Use actual IP
        A lot of networks are unnamed for Apache
        All news from Adult Industry: new sites, new galleries, updated sites, PPS days and much more!
        TrafficHolder.com - Buy/Sell Adult Traffic

        Comment

        • TheDA
          Confirmed User
          • May 2006
          • 4665

          #5
          I'm guessing the changes they made to their hostname maybe aren't picked up by my hosts yet.

          Thanks all.
          Sharleen Spiteri - 1989 - In The Ass

          Comment

          • fris
            I have to go potty
            • Aug 2002
            • 55719

            #6
            goto cmd prompt and find your ip
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            My Latest Theme

            Comment

            • TheDA
              Confirmed User
              • May 2006
              • 4665

              #7
              Originally posted by fris
              goto cmd prompt and find your ip
              Thanks.

              What do I do with it then?
              Sharleen Spiteri - 1989 - In The Ass

              Comment

              • TisMe
                Confirmed User
                • Aug 2008
                • 1719

                #8
                Enter allow from 000.000.000 <- your ip instead of the domain name.

                Comment

                • TheDA
                  Confirmed User
                  • May 2006
                  • 4665

                  #9
                  Originally posted by TisMe
                  Enter allow from 000.000.000 <- your ip instead of the domain name.
                  Yes that bit works, it's the hostname side of things that isn't. I was hoping to get that to work.
                  Sharleen Spiteri - 1989 - In The Ass

                  Comment

                  • Bman
                    Confirmed User
                    • Aug 2003
                    • 1679

                    #10
                    Maybe there is a third?
                    ICQ 228211529

                    Comment

                    • habibjr
                      Confirmed User
                      • Apr 2005
                      • 342

                      #11
                      is there any easy way to block ips by U.S. city or state?
                      Make Money on REAL ReAlity Ethnic Homegrown Porn

                      The ORIGINAL BLACK SEX FINDER

                      Comment

                      • TheDA
                        Confirmed User
                        • May 2006
                        • 4665

                        #12
                        Originally posted by Bman
                        Maybe there is a third?
                        I can't see why there would be.
                        Sharleen Spiteri - 1989 - In The Ass

                        Comment

                        • TheDA
                          Confirmed User
                          • May 2006
                          • 4665

                          #13
                          Originally posted by habibjr
                          is there any easy way to block ips by U.S. city or state?
                          I've heard of people doing it, but I don't know how accurate it is.
                          Sharleen Spiteri - 1989 - In The Ass

                          Comment

                          • rowan
                            Too lazy to set a custom title
                            • Mar 2002
                            • 17393

                            #14
                            It's possible that your ISP's reverse DNS isn't set up properly, ie your server cannot resolve 192.168.111.222 to something.newhostname.com.

                            It's a dodgy way of allowing access anyway, since it's a wildcard... anyone from your ISP is permitted to connect... I'd stick with IP only.

                            Comment

                            Working...