Thomas_Leroy
Mar 16, 2018Nimbostratus
Block URL iRule
Hi,
I try to block URL based on the DNS request :
when DNS_REQUEST {if {[class match [DNS::question name] contains "URL_blocking"] } {
log local0. "website blocked [DNS::question name]"
DNS::header rcode NXDOMAIN
DNS::return }}
If I defined le.com and *.le.com :
Query le.com -> returns back NXDOMAIN
Query -> returns back NXDOMAIN
Query google.com -> returns back NXDOMAIN
My question is can I use wildcard into the datagroup ? Is there a better way to achieve this ?
Thanks for your help