Block requests to default VirtualHost

Discussion in 'Apache' started by karnbo, Aug 30, 2008.

  1. #1
    Hi

    My server is spammed with GET/POST requests actually not intended for my server. Example (from the access log)
    69.4.238.200 ... "POST http://webdatacentre.com/tools/a-poster/proxy.php HTTP/1.1"
    69.4.238.200 ... "GET http://local.yahoo.com/details?comment=pharmacy...."
    67.159.44.143 ... "GET http://www.gsa.gov/Portal/gsa/ep/formslibra..."
    69.4.238.200 ... "GET http://limeseed.de/%5C%22http://www.geocities.com/adelinerusso72/v-shaped-pussy.html%5C%22 HTTP/1.1"

    1) Can I block all incoming requests that are routed to the default VirtualHost? I'm using VirtualHost, and all requests to my IP is routed to the first default VirtualHost.
    I tried to do
    Deny from all
    ... on the default Directory, this does stop those GET/POST requests though.

    2) Can I create an IP blacklist blocking all calls from a certain IP. Example
    Deny from 69.4.238.200
    Deny from 67.159.44.143
    ...and where should I put this blacklist?

    Grateful for any help
    /karnbo
     

    Attached Files:

    karnbo, Aug 30, 2008 IP
  2. GeorgeP

    GeorgeP Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    did you try .htaccess (rewrite) rules ?
     
    GeorgeP, Sep 1, 2008 IP