Forum Discussion
Supahoopsa_8892
Jun 10, 2011Nimbostratus
Hi Michael, thanks for your quick feedback.
I've just applied the changes with your recommendations, but it appears we're still having problems with the matchclass aspects. I wanted to state that I created "site_access_list" as a Data Group in the BIGIP UI. It contains multiple Host and Network addresses. Anything I should be considering on that?
Code looks like:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*client*" {
if { !([matchclass [IP::client_addr] equals $::site_access_list]) } {
HTTP::redirect https://site
}
}
}
}