logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Is it possible to drop connections?
Author
alexerwin



Joined: 24 Mar 2009
Posts: 14

PostPosted: Wed 25 Mar '09 16:10    Post subject: Is it possible to drop connections? Reply with quote

Is it possible to drop connections using apache? No return of a status code or anything else? People on my blacklist would encounter behavior. I tried using mod_security and it said in my log that drop is not implemented for Windows. I want to make it appear like port 80 is not listening to the request if the ip is on the blacklist.

Thanks

Alex
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Wed 25 Mar '09 16:19    Post subject: Reply with quote

You can't disallow a listen, but you can deny the access from your server with allow/deny

[code]
Order Deny,Allow
Deny from 192.168.0.1 192.168.0.5
Allow from all
Back to top
alexerwin



Joined: 24 Mar 2009
Posts: 14

PostPosted: Wed 25 Mar '09 17:10    Post subject: Dynamically Block Request? Reply with quote

I wanted to do this dynamically by looking up an entry in a database and simply not respond to a query on port 80 if the ip address is in the blacklist. I want to make it like server isnt even there.

I got a lot of crackers and hakkers trying to break into php modules. Even though I dont even run phpmysql, or the variety, I still want to black list these host and their bots.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 25 Mar '09 19:47    Post subject: Reply with quote

Hey alex,

Over time that list is going to get huge and slow down the server most likely.
I get those same attempts (we all do), you just learn to live with them and as long as you've protected your server good, those should not be a problem.

I do wish we could drop the connection. Apache 1.3 would just "not answer" if it was told not to answer using the deny/allow's .. but no such luck with 2.x
Back to top
alexerwin



Joined: 24 Mar 2009
Posts: 14

PostPosted: Wed 25 Mar '09 21:36    Post subject: Anyone tried NetDefender from CodePlex Reply with quote

I havent played with it but its open source. Maybe if it has some accessible format for storage of blocked ip addresses, you could use Apache to "instruct" Netdefender to block that IP.
Back to top


Reply to topic   Topic: Is it possible to drop connections? View previous topic :: View next topic
Post new topic   Forum Index -> Apache