Announcement

Collapse
No announcement yet.

simpler way of banning whole world?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • simpler way of banning whole world?

    simpler way of banning whole world?
    ok dont laugh,but as im using a huge htaccess file to ban full countries by range i was just wondering if there's an easier way doing this then adding tons of deny from to my htaccess.
    for example,what if only want visitors from the u.s on my site..?

  • #2
    umm, whats the point of doin that?

    Comment


    • #3
      There could be many reasons, I know alot like to block out chinese.

      Comment


      • #4
        ya i could see the reason in that...

        Comment


        • #5
          I don't thinks it is possible to block whole world. you can block certain IP range but not whole country's IP it seems to be very difficult to do so for getting IP address range.

          Comment


          • #6
            cant you just allow cetrain ip's instead of banning them?
            SANITY IS JUST A STATE OF MIND

            Comment


            • #7
              Shouldnt you be able to allow only IPs in the US ranges and then deny all others?
              http://www.osmike.com : open source and operating systems!

              Comment


              • #8
                you can use www.arin.net, www.ripe.net to find out the country in which an IP is "owned" by, however this doesn't stop the company that owns them from using them on routers in USA or anyother country for that matter. But you can tell what country they are supposed to be.
                www.shapemetrics.com
                Red GateSQL tools for DBA

                Comment


                • #9
                  I don't knowthe reason in that

                  Comment


                  • #10
                    If your list of deny from is larger than your allowed you could first deny from all then allow ranges of ip's after that. Some countries have a fairly extensive list of ip's assigned to them so it can be a pain either way.

                    Comment


                    • #11
                      There are many ways to block countries with GeoIP etc. What type of server is it, and what web server and firewall are you using?

                      Comment


                      • #12
                        This thread is over 2 years old.
                        www.shapemetrics.com
                        Red GateSQL tools for DBA

                        Comment


                        • #13
                          is it a joke?
                          it is impossible dear.
                          Last edited by Pegasus; 05-27-2010, 08:16 AM. Reason: sig removed - you can have one after 30 days membership AND 30 posts

                          Comment


                          • #14
                            it is possible, it would be easiest to allow specific ranges than deny them. and in IIS it can be done in a few 2 clicks. and adding IP's of the allowed ranges.
                            www.shapemetrics.com
                            Red GateSQL tools for DBA

                            Comment

                            Working...
                            X