Hi @Sergey Knyazev,
It is necessary to filter connections to the server by IP address and the presence of a certain phrase in the URL.
There are two directions:
- If you filter by IP address, you can use the
IP and Domain Restrictions
module.- Select your website -> double click module
IP and Domain Restrictions
-> Add Deny Entry... - > Enter the <IP address you want> inSpecific IP address
textbox.
- Select your website -> double click module
- If you filter by URL, you can use the
URL Rewrite
module.- Download and install URL Rewrite Module via: https://www.iis.net/downloads/microsoft/url-rewrite
- Open the URL Rewrite module, Click the Add Rules option, select Request Blocking rule template and click the OK button.
- Set configuration like this (You can modify it according to your needs):
- Click "OK" to finish the configuration.
For more details, you can refer to relevant docs: https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.