Sure this is possible.
Count any request to one of this IPs in a local PDs Variable.
if this number exceeds a threshold block the connection for the client using blockingsession. There you can define how long the client will be blocked.
You may define a blocking page to explain why the client is blocked.
In such case set the PDs Variables counter to zero.
I am unfamiliar with PDs Variables. Can you eliborate?