Within the Firewall settings (you find them under setting in (/admin/settings/firewall) you can define the following settings: