Thread: How to block Certain Countries using htaccess

  1. #1
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812

    How to block Certain Countries using htaccess

    Hi there,

    How do I go about blocking access to my site from certain countries, namely Russia, Ukraine & China?

    I believe I can use a htaccess file to do this. What do I need to do?

    Thanks
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  2. #2
    Registered User
    Join Date
    Dec 2004
    Location
    Oklahoma City
    Posts
    55
    To be honest, I have no idea, but....

    Believe it or not, I stumbled on this right before coming here and saw your thread.

    http://www.webmasterworld.com/forum92/104.htm

    Strange, won't work this way for me but I found it in google, I searched on deny+allow but if you put "htaccess+block+country" you should see "I need to ban a country using htaccess". Small world.

    Hope it helps, I fell on it by accident while searching on deny and allow statements for router access lists.

    Spuds
    Last edited by SpudNuts; 02-15-2005 at 03:54 PM.

  3. #3
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    LOL!

    The link denied me access! Want's me to pay for access. However, I got in via Google.

    Thanks. Looks like it could be helpful.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  4. #4
    Registered User
    Join Date
    Dec 2004
    Location
    Oklahoma City
    Posts
    55
    Hey, if it helps ya, help a brutha out with alittle rep....lol I need all the help I could get.

  5. #5
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >help a brutha out with alittle rep

    Done.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  6. #6
    Registered User
    Join Date
    Dec 2004
    Location
    Oklahoma City
    Posts
    55
    How'd you do that, now ya got me all screwed up.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  2. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. Replies: 4
    Last Post: 01-16-2002, 12:04 AM
  5. pointers
    By fanaonc in forum C Programming
    Replies: 3
    Last Post: 11-17-2001, 02:18 AM