Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    34

    Default how to disable a country visits

    I'm having a lot of problems from visitors coming from nigeria and romania and I would like to disable those 2 countries

    Any idea on how to do it?

    thanks in advance

    sebans

  2. #2
    Member
    Join Date
    Feb 2004
    Location
    Porto - Portugal
    Posts
    41

    Default

    LOOOOL

    Hurray for freedom!!!!

    This can be done with iptables checking ip's. But hey... c'mon... just learn to cope with it or sometime you wont allow anyone!

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    I'd like to deny this block 219.236.0.0 - 219.237.255.255 using Iptables.

    Is there a shorthand to blocking this range or do I have to do each line manually?

    thanks.

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    iptables -A INPUT -s 219.236.0.0/16 -j DROP

    that will do.

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    that easy eh?

    can you explain how that works? (Just so I know for future reference.)

    thank you.

  6. #6
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    255.255.0.0 ==> 11111111.11111111.00000000.00000000

    thatz 16 bit empty at the last so its: 219.236.0.0/16

    use this same concept and it will sure help.

Similar Threads & Tags
Similar threads

  1. Tracking Googlebot Visits
    By dandridge in forum New User Questions
    Replies: 0
    Last Post: 11-04-2010, 05:17 AM
  2. Recent googlebot's visits
    By KarenP in forum New User Questions
    Replies: 7
    Last Post: 11-25-2008, 10:36 PM
  3. Ignore My Own Visits
    By lbarber in forum New User Questions
    Replies: 0
    Last Post: 09-22-2007, 10:07 AM
  4. 4000 visits
    By Wicked in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-18-2006, 03:05 PM
  5. Can I known how much visits / access one site is ...
    By strikinado in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2005, 05:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube