.htaccess block domain

Discussion in 'Apache' started by TommyD, Jun 16, 2007.

  1. #1
    Hello Everyone,

    I got a simple .htaccess to block a domain, hound (dot) com, however I heard that a simple domain block reduces server efficiency. I was stripped of a few gigs of bw in a couple of days from this site, and want to not effect good users. Is there a simple/efficient way to block access from a domain?

    tom
     
    TommyD, Jun 16, 2007 IP
  2. pixelcoder

    pixelcoder Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you don't want to do it via .htaccess as you have done, you'd need to block it at firewall level depending on your server config.
     
    pixelcoder, Jun 22, 2007 IP
  3. TommyD

    TommyD Peon

    Messages:
    1,397
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thx,

    I only have access to .htaccess, so it there a right way or a wrong way to block a whole domain? Speed is of course an issue.

    tom
     
    TommyD, Jun 23, 2007 IP