IP blocing will slow down my website?

Discussion in 'Site & Server Administration' started by HUF, Apr 5, 2014.

  1. #1
    Hello!

    If I block IPs from more countries (cpanel), it will slow down my website?
     
    HUF, Apr 5, 2014 IP
  2. MilesWeb

    MilesWeb Well-Known Member

    Messages:
    869
    Likes Received:
    35
    Best Answers:
    7
    Trophy Points:
    173
    #2
    If you are blocking them using .htaccess OR any firewall, it will not slow down the website's performance. Yes, the server will process the request but that is in fraction of seconds and won't affect the website functionality.
     
    MilesWeb, Apr 5, 2014 IP
  3. WSWD

    WSWD Well-Known Member

    Messages:
    1,420
    Likes Received:
    65
    Best Answers:
    1
    Trophy Points:
    175
    #3
    Not exactly true. If you're processing entire countries, yes, it has the potential of slowing things down. Depends more on how powerful your server is and how many countries you plan on blocking.
     
    WSWD, Apr 6, 2014 IP
  4. Tearabite

    Tearabite Prominent Member

    Messages:
    4,629
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #4
    I have huge chunks of the world blocked via IPTables/CSF, and I get no noticeable impact.. but if you're on a slow host, then everything is going to be slow..
    Take a look at CloudFlare which pipes everything through their system first and lets you do the blocking there with no impact on your server.
     
    Tearabite, Apr 14, 2014 IP
  5. jeffatrackaid

    jeffatrackaid Active Member

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    75
    #5
    Large IP lists in either itables, cphulk or htaccess can slow down access. However, unless your system is very high traffic (100's of req/sec) or you have very large lists (10,000's) of IPs, then you will likely not have any problems.

    We recently shave ~0.25s (10%) from page load times on a site by having them remove the 35,000+ rules in their .htaccess and simply redirect these to a script. So large htaccess files (especially rewrite rules) can slow down access on busy systems.
     
    jeffatrackaid, Apr 17, 2014 IP