The plugin stops unwanted visitors before they reach your store. You can block or allow single IP addresses, IP ranges and countries. The Anti-Hacker and the automatic ban rules add attackers to the ban list for you.
It's easy to configure the plugin. See pictures.
1. After the installation open the menu 'FoxNetSoft' - 'IPFilter'. It has three pages: 'Firewall Rules', 'Automatic IP Ban Rules' and 'Configure'.

2. Open 'Configure' and tick 'Enable plugin'.
Put your own IP address in 'Admin area allowed IP addresses' before you add any rule. 'Your IP address' shows it. Separate several addresses with a comma. The addresses from this list are never blocked, on the admin area and on the public store.
'Notify about blocked IP address' writes each block to the nopCommerce log.
'HTTP status code for blocked requests'. 403 is recommended.
'Country Filter' works with the list on the 'Countries' tab, 'Region Filter' works with the list on the 'Region (IP networks)' tab.
'Deny' blocks the visitors from the list. Everyone else can open the store.
'Allow' lets in only the visitors from the list and blocks everyone else. Be careful with it. Add your own country or IP range first. An empty list blocks nobody.

3. 'Enable Anti-Hacker'. When a request matches one of these checks, the plugin adds the IP address to the ban list at once.
'Block URLs with non-ASCII characters'. Leave it disabled if your URLs use local characters (Cyrillic, Chinese...), otherwise you will ban real customers.
'Block URLs for static files' bans the visitors who ask for the file types from 'The list of extensions'. Separate the extensions with a comma. A nopCommerce store has no .php files, so only scanners ask for them.
'Hacker's patterns in URLs'. Each pattern is on its own line.
'Enable custom 'Access Denied Page'' shows your own page to the blocked visitors. Copy your HTML file to the site root folder and write its name in 'Custom 'access denied page''. It must be an .html or .htm file inside the site folder. If this option is disabled, the visitor sees the default page of the plugin (see step 10).

4. Press 'Download new GeoLite databases' once after the installation. The plugin comes without these files and the country filter does not work without them. The button downloads them for you, so you do not need a MaxMind account for it.
'Check IP address' shows if your lists ban an address. Select the 'Store', type the 'IP address' and press the button. The plugin must be enabled. It checks only the IP address, IP range and country lists, it bans nothing.

5. Open 'Firewall Rules', the 'IP addresses' tab. Add an address for all stores or for one store. If 'Allowed' is enabled, this address is never blocked. If it is disabled, the address is banned.
The addresses banned by the Anti-Hacker and by the ban rules appear here too, with the reason in 'Comment'. If a real customer was banned, delete the row.
'Import' reads a text file with one IP address on each line.
'Import from CSV' reads lines in the format ipaddress,allowed,storeid. For example 203.0.113.25,false,0. Store 0 means all stores. Addresses which are already in the list are ignored.

6. The 'Region (IP networks)' tab. Here 'Region' means an IP range ('From' - 'To'), it is not a part of a country. 'Region Filter' from step 2 decides if the list is blocked or allowed.
'Import from CSV' reads lines in the format ipaddressfrom,ipaddressto,storeid,comment.

7. The 'Countries' tab. Select the country in 'Country code' and press 'Add new record'. 'Country Filter' from step 2 decides if the list is blocked or allowed. This tab has no import or export.

8. Open 'Automatic IP Ban Rules' and press 'Add new'. A rule bans the IP address of the visitor without your help. Each rule works for one store only. If you have several stores, create the rule for each of them.

9. There are two types of rules.
'Request URL Match Rule' bans the visitor on the first request to the URL. Write the part of the URL in 'The url substring'. If 'Match mode' is enabled the URL should contain this text, if it is disabled the URL should be exactly the same. Use only the URLs which real customers never open. nopCommerce has no /wp-login.php, so whoever asks for it is a scanner.

'Error Log Frequency Rule' bans the visitor when the nopCommerce log has too many messages with 'Log keyword (substring)' from the same IP address. In this example it is 20 messages with 'Error 404' within 5 minutes. If 'Count' is 1, the first message bans the visitor. nopCommerce writes these 404 messages unless the setting commonsettings.log404errors is disabled.

10. This is the default page which the blocked visitor sees, with the status code from step 2.

11. Good to know.
Requests from the server itself are never blocked, so test your rules from another computer. Search engines are not blocked.
If your store works behind Cloudflare, the plugin reads the address of the visitor itself. The nopCommerce log still sees Cloudflare's addresses, and the 'Error Log Frequency Rule' needs the real ones. Open 'Configuration' - 'Settings' - 'App settings', the section 'Hosting'. Enable 'Use proxy servers', set 'The header used to retrieve the originating client IP' to CF-Connecting-IP and add the Cloudflare IP ranges in 'Addresses of known proxy networks'. The plugin shows a warning on the configure page until this is done.
If you use another proxy or load balancer, add its address to the known proxies in the same section. Otherwise the plugin sees the address of the proxy for all visitors.
After the 30-day trial period the plugin stops blocking until you enter the serial number.