hosts.deny - empty client?
Hi,
i try to write a script which gets IPs from a list, and puts them it into my hosts.deny. It already works in a test environment, but every now and then a line with no client is in between. So it looks like: "sshd : " what happens with this line? Will it be interpreted as not exisiting or will it be interpreted as ALL? Or will it crash? Thanks Sascha |
Better yet, why don't you include some kind of sanity filter in your script to verify that the IPs are numeric? You could use a standard regex to make sure the IP consists of only numbers.
|
Quote:
|
I would suggest you try http://denyhosts.sourceforge.net/
|
Hi,
thank you for all your answers. I now filter out the empty lines. |
All times are GMT -5. The time now is 08:09 PM. |