Page 1 of 2 12 LastLast
Results 1 to 15 of 30

Thread: Block Countries?

  1. #1
    4x4
    Join Date
    Oct 2004
    Posts
    1,043

    Block Countries?

    How do I figure out the IP ranges of some countries so that I can block them from my site?

    I have a couple countries really visiting and hitting hte site hard but of course $0 to a few pennys a day in income since adsense and even my affiliate offers are NO GOOD for China.

    How do I block this junk traffic?

    I have a Geo-Trageting DB that I could cross-reference each IP with but I would rather simply BAN the entire country or 20+ IP Masks.

    Thanks
    -Todd

  2. #2
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    Looks like I can use:

    http://www.hackingspirits.com/cyb_fo...loc_place.html

    And a simple if statement to check the range.

  3. #3
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    maxmind.com has a database.

    Todd if you have your own dedicated server I recommend APF firewall. Get them to do the install for you and ask them to include banning for whatever countries you do not want.

    Personally I've banned china & russia entirely from some of my servers. Its unfortunate for the people in those countries who are honest, but there are too many dishonest people.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  4. #4
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    Good call Chris. I run APF and I think I will have them ban those countries as well.

    I was going to use MaxMind but didn't want to have to run a query on each pageload. I'll be trying APF now.

  5. #5
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    I'm going to have them ban:

    • Turkey
    • Brazil
    • China
    • Russia
    • Iran


    Not sure about: Kuwait, Hong Kong, South Korea, Algeria, Saudi Arabia, Syria

    What are you guys thinking about the "NOt sure" countries? Ban them or not.

  6. #6
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    I did a little searching on google and it seems these are good to block too if yo don't want whois.sc snooping.

    #whois.sc & inteldomain
    169.207.0.0/16
    169.207.1.89
    198.78.175.26
    198.78.175.27
    198.78.175.28
    198.78.175.29
    198.78.175.30

    CHina & Korean IP's
    http://www.okean.com/sinokoreacidr.txt

    Guess I coulda added them to APF myself.... oh-well for $25 I'll be able to get ALL the coutnries blocked, latest apf installed and tweaked

  7. #7
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    indonesia is another good one, and consider ukraine,
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  8. #8
    Is there a way to block countries if I don't have a dedicated server/firewall setup?

  9. #9
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    you can always fill your .htaccess with their IP ranges.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  10. #10
    I see mildly ill people. AmbulanceBlues's Avatar
    Join Date
    Aug 2006
    Location
    Houston
    Posts
    119
    Quote Originally Posted by Chris
    ...

    Personally I've banned china & russia entirely from some of my servers. Its unfortunate for the people in those countries who are honest, but there are too many dishonest people.
    Question from a noob: Are they dishonest because they're stealing your content or because of malicious activity?

  11. #11
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Both, but the reason I block them is mainly the malicious activity.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  12. #12
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    Well RFX has not gotten back to me and I ordered yesterday AM. I e-mailed their sales last night too, and nothing.

    I also foundit funny they charged me sales tax and I believe they are in Canada atleast their e-mail was a .CA

    Hmm..

    I'm blocking them for malicious activity as well as resource/bandwidth hog w/no return for myself.

  13. #13
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    No response from RFX yet, going to call them on monday.

  14. #14
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    hmm, suprising.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  15. #15
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    Quote Originally Posted by Chris
    hmm, suprising.
    Yep, no one answered "everyone busy".

    I left a detailed vmail and am hoping they get back to me soon.

Similar Threads

  1. Lay Out HELP writers BLOCK
    By izwar in forum HTML, CSS, Layout, and Design
    Replies: 3
    Last Post: 08-11-2006, 08:45 AM
  2. New Kid on the Block
    By Bricktowntom in forum Introductions
    Replies: 7
    Last Post: 04-10-2006, 06:24 AM
  3. Possible to block search engines...
    By deronsizemore in forum General Management Issues
    Replies: 5
    Last Post: 10-10-2005, 05:56 PM
  4. How to remove SPAM in my website?
    By minutesloaded in forum General Management Issues
    Replies: 6
    Last Post: 02-09-2005, 03:14 PM
  5. Strange Countries...
    By incka in forum General Chat
    Replies: 0
    Last Post: 11-04-2003, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •