No, not really.
The problem is that OP is asking for something to automatically make decisions for him. Computers don’t make decisions, they follow instructions.
The computer is not asked to make decisions like “pick the best image”. The computer is asked to optimize, like with lossless compression.
if I were you, I would do IP whitelisting at the firewall instead of or besides the Minecraft server