Hi Sonny,
you could simply add an additional whitelist for problematic web pages (e.g. upload page)...
when HTTP_REQUEST {
This iRule will check the HTTP referer to make sure the traffic arriving at the OWA is in-fact coming from Sharepoint.
if { not ( [HTTP::uri] contains "/favicon" ) } {
if { $static::ref_debug } { log local0. "Incoming referer: [HTTP::header Referer]" }
switch -glob [string tolower [HTTP::header Referer]] {
"https://sharepoint/*" {
if { $static::ref_debug } { log local0. "From allowed referer - allow" }
return
}
"https://OWA/*" {
if { $static::ref_debug } { log local0. "local domain - allow" }
return
}
default {
if { $static::ref_debug } { log local0. "from disallowed referer - redirect" }
switch -glob -- [string tolower [HTTP::uri]] {
"*upload.aspx*" - \
"*attachment.aspx*" - \
"*somepage.aspx*" - \
"*whitelist.aspx*" {
if { $static::ref_debug } { log local0. "Explicitly whitelisted URL - allow" }
return
}
default {
HTTP::redirect [HTTP::header Referer]
}
}
}
}
}
}
Cheers, Kai