Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to only permit a specific host through a VS





How to only permit a specific host through a VS using content rules


Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

How to create a content rule to only allow a specific host, and block all others.

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause: Would like to limit access to a Virtual Service
  • Navigate to Rules & Checking > Content Rules > Create New
  • Set the Rule Type to Content Matching
  • Set the Header Field to "Host"
  • In the Match String, enter the host that should be permitted using proper Regex format
  • Enable the options "Negation", "Ignore Case", and "Fail On Match".  This will only allow the host you specified and fail all other traffic.
  • Create the rule
  • Place the rule within the appropriate Virtual Service within Advanced Properties > HTTP Selection Rules

Now, when that specific host is requested it will be permitted.  All other hosts will be blocked.


Workaround: This can also be achieved through the use of ESP or by creating a custom WAF rule.

Was this article helpful?
0 out of 0 found this helpful