Whitelist an IP Address 

This article goes over how to add a whitelist rule for an IP address or range of IP addresses.

1. Open the dotDefender Administration Console.
2. Expand the required Profile (This will usually be the same site name as IIS).
3. Expand Patterns > Whitelist
4. Select User Defined

.

5. In the right pane, click Add New Rule. Add a name for the rule.


6. In the Rule Type window, select Search in custom fields of HTTP requests and click Next.


7. In the Custom Fields window, select Match with remote address (REMOTE_ADDRESS) from the Standard HTTP Requests fields section click Next.


8. To Whitelist one IP address, in the Create Pattern window, enter the IP address beginning with the caret sign and ending with the dollar sign and add backslashes before each dot (since this is a regular expression field).

For example: to Whitelist the IP 192.168.200.100, enter: ^192\.168\.200\.100$


9. To Whitelist a range of IP addresses, in the Create Pattern window, enter a regular expression representing the range.


For example: to Whitelist the range 10.20.54.0-10.20.68.255, enter: ^10\.20\.((5[4-9])|(6[0-8]))\.(([0-9])|([1-9][0-9])|(1[0-9][0-9])|(2[0-4][0-9])|(25[0-5]))$

  • Here is a IP Range to REGEX convertor if you need it: IP to REGEX


10. In the same window, in the Take Action field, select Whitelist and choose whether to log all events for the IP or not.
11. Click Next.
12. Click Apply to all pages or to a specific URI on the next screen then click Next, then Finish.


13. Click the GREEN arrow for the settings to take effect. The rule will be successfully submitted.