OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Block sender based on IP

From: Simone Felici (s.felicialpikom.it)
Date: Tue Oct 16 2007 - 09:00:37 CDT


mouss ha scritto:

>
> use '%s'. (%u and %d only work for email addresses).
>
> SELECT action FROM banned_ip where '%s' = client
>
> you should have a table for this, not mix email addresses and client
> IPs/hostnames in a single table.
>
>
>

Thank's mouss as always, it works!
Is there a particular syntax to write into DB the banned network to block in example a /24 network?
I've no found docs for this :)

Thank's!!!

Simon