20 Lines or Less: Security Headers and DNS
What could you do with your code in 20 Lines or Less?
That's the question we like to ask from, for, and of (feel free to insert your favorite preposition here) the DevCentral community, and every ...
Published Mar 14, 2016
Version 1.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
Kai_Wilke
Aug 09, 2016MVP
Thanks Jason for including one (two!) of my solutions in the 20LinesOrLess series... š
@Jie: The
DNS::answer clear
is required in this case to sanitize the existing DNS answer, to make sure that only the blacklist response is send to the client. If you skip the DNS::answer clear
, then it may become a RR DNS response. But you could also directly DNS respond to the request using the DNS_REQUEST event (not implemented in this specific iRule). In this case you don't need to DNS::answer clear
the answer, since you would build the answer completely from the scratch...
Cheers, Kai