Hi all,
I’m working on a vThunder 2.7.2-P10 that is publicing many URL form a single virtual IP. Now I need to deny access from some IPs only for some URLs (not for all). For example I have 3 sites:
you solve this complexity with aFlex.
In the example below you find your solution in a simple version. I can be extended with class list and you can change the action from TCP::close to HTTP::redirect “http://site1.example.com/”
aFlex: IP-Host-restriction
when HTTP\_REQUEST \{
if \{ [IP::addr [IP::client\_addr] equals 1.2.3.0/29] \} \{
if \{ [HTTP::host] equals "site1.example.com" \} \{
\} else \{