Blocking and allowing IP-addresses is done using the Nginx access module.
The ngx_http_access_module module allows limiting access to certain client addresses.

Before you start

Be very carefully when blocking IP’s, user agents or referrers, as it is relatively easy to block more agents then you want. 

When adding block entries, make sure to check your access logging to make sure you are only blocking the requests you want to block.

Blocking user agent

Retrieve the user agent you want to block from the /var/log/nginx/access.log

Now you have 2 options:
1. Dutch customers only: block the user agent via your Service Panel. More information can be read here.
2. Login to your Hypernode using SSH and edit /data/web/nginx/server.blacklist.

Next, add the user agent to the file:

And edit the user agents until they match your flavor.
If you make a mistake, the Shell will warn you:

How to block referrers

Blocking referrers works the same way it does with blocking user agents.

How to block certain domain names

To do this, create a file named server.blockdomains in /data/web/nginx

Blocking a certain domain name

Blocking a certain domain but only one IP

These snippets are examples! Don’t copy and paste blindly… IE: using this configuration with a poker shop will not give you the results you expected!