Ban IP ?

Titam

Verified User
Joined
Apr 29, 2005
Messages
168
Hi,

In my log access error, i have a lot of different attempt of an IP who want to get or pass some command by URL. As i don't know if it's dangerous or not, I would like to redirect its IP on a page www.mydomain.com/stop.html by example, where i can write somethings as "you have no right to access to this server for 24 h" by example or smething like that.

Is it possible to do this for all domains hosted ?

Thanks,
 
Using Linux? You could create a rule in iptables to redirect incoming traffic from a given IP to a new IP, which would have to be dedicated, to a website with only that content you wanted displayed.

Note that you're responsible for making usre any added iptables rules get loaded when you restart your server.

And no, this isn't the place for a course on how to write iptables rules; way too complex.

Jeff
 
Back
Top