Host-Header Injection URL Rewrite rules can be used to find malicious host headers:…
- User
Host-Header Injection URL Rewrite rules can be used to find malicious host headers:
Click on the site in IIS Manager Go to “URL Rewrite” Click “Add Rule(s)” Select “Blank rule” For “Match URL” section, enter (.) into the “Pattern” In “Conditions” section, click “Add” Enter {HTTP_HOST} into “Condition input” Select “Does Not Match the Pattern” from “Check if input string” list Enter ^([a-zA-Z0-9-_]+.)domain.com$ into “Pattern” field (change domain name with yours) For the “Action” section, select “Redirect” from the “Action type” list Enter your domain address (https://domain.com/) in the “Redirect URL” Select “Permanent (301)” from the “Redirect type” list Click “Apply” For fixing the host header injection:
Click on the site in IIS Manager and then go to URL Rewrite:
- Assistant