How to ban bangladesh IP to visit my wordpress website

Discussion in 'WordPress' started by rautella, Apr 27, 2012.

  1. #1
    Hi,

    In past 7 days i got 10,000 visit on my wordpress website from bangladesh. I think it is hacking attack. I want to ban bangladesh ip to visit my website.

    How can I do this?

    Thanks
     
    Last edited: Apr 27, 2012
    rautella, Apr 27, 2012 IP
  2. DayaJosh

    DayaJosh Member

    Messages:
    198
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    I think, you can restrict the access through .htaccess file, but you should know the exact IP range to edit the file.
     
    DayaJosh, Apr 27, 2012 IP
  3. locke815

    locke815 Peon

    Messages:
    480
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Edit your .htaccess file. Go in via FTP.
     
    locke815, May 3, 2012 IP
  4. ColorVila

    ColorVila Greenhorn

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    Check wordpress.org/extend/plugins/search.php?q=ban+IP
    There are some plugins can ban IPs
     
    ColorVila, May 5, 2012 IP
  5. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Set your site to use CloudFlare. It's free and will speed up your site. Also, it allows you to block entire countries easily. It doesn't necessary block them like a chinese firewall, but it will prompt visitors to enter a captcha before visiting, thus filtering any illegitimate traffic.
     
    fixyourserver, May 7, 2012 IP
  6. Zohaibsherkhan

    Zohaibsherkhan Greenhorn

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    how to set site on cloudflare
     
    Zohaibsherkhan, May 7, 2012 IP
  7. Microsuck

    Microsuck Greenhorn

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    8
    #7
    Sign up and then follow Cloudflare's instructions.

    Also, you can ban by IP range.
     
    Microsuck, May 7, 2012 IP
  8. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #8
    First, head over to cloudflare and sign up for your free account. This is relatively painless. At this point you will want to add your site.
    [​IMG]

    [​IMG]

    Depending on your configuration, whether or not you want to server subdomains etc.. through Cloudflare, you will want settings similar to mine, the following being most important:
    [​IMG]

    Next you will be provided with options. Some sites I use can safely function with bleeding edge optimization, some will not. I’m using the basic optimization on fixyourserver.com with a low security setting. I will likely setup custom settings once I have tested further. Once this is done, CloudFlare will provide you with nameserver settings. Pull out your registrar information and update your nameservers. Many different domain registrars have different configurations, mine is very different so I will spare you with the screenshots here.
     

    Attached Files:

    fixyourserver, May 7, 2012 IP
  9. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #9
    I apologize for posting again; however, I just saw that you were running WordPress as well. You can install w3 Total Cache plugin and it has specific changes which can use CloudFlare as well.

    I believe that this will definitely help with your bandwidth and potential hacking attempts.
     
    fixyourserver, May 7, 2012 IP
  10. StreetFighter

    StreetFighter Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It may be people using a proxy who are not even in bangladesh.
    As long as you are well protected against spam it's all good.
     
    StreetFighter, May 8, 2012 IP