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 -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Module for adding attackers ip to windows firewall
Author
Baardmans



Joined: 02 Feb 2012
Posts: 7
Location: Holland

PostPosted: Tue 21 Aug '12 12:28    Post subject: Module for adding attackers ip to windows firewall Reply with quote

I've done some googling and it appears that it is possible to add IP's to a windows firewall rule through cmd / powershell / programming.

http://stackoverflow.com/questions/4382933/programmatically-add-ip-to-server-2008-firewall-rule

So I wondered if there is an Apache module that checks a request for a certain path/regex, for example "/phpmyadmin" and when found it adds the remote_ip to the firewall rule which in effect blocks the user from the complete server or just http depending on the server rule. Could mod_security do this or something like it?
Back to top
James Blond
Moderator


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

PostPosted: Sat 22 Sep '12 23:35    Post subject: Reply with quote

mod security can log and also execute a script

e.g.
SecRule REQUEST_URI "\/phpmyadmin" "log,exec:C:/path/to/ban_it.cmd"

I neverd used mod sec, but found that info on the net.
http://spamcleaner.org/en/misc/modsec2ipt.html
Back to top


Reply to topic   Topic: Module for adding attackers ip to windows firewall View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules