large .htaccess file size slowing down site

Discussion in 'Apache' started by sp360, Jul 17, 2008.

  1. #1
    Is there a way around this? My .htaccess file is about 2MB since im blocking allmost every country except for one. Is there a way to make my sites speed load faster?
    Thanks, SP360
     
    sp360, Jul 17, 2008 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    Maybe you could block all, and then allow just that one country? Then you wouldn't need to name each country/iprange you are blocking... it depends on how exactly you are blocking those countries... but this idea sounds logic.
     
    pr0t0n, Jul 18, 2008 IP
  3. sp360

    sp360 Well-Known Member

    Messages:
    1,023
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks for the reply, I've ended up doing that. I denyed form all and only allowed that coutnry.
    Thanks, SP360
     
    sp360, Jul 18, 2008 IP