Forum Discussion
Jarunam_351065
Feb 07, 2018Nimbostratus
irule to pop-up a notification banner over a webpage.
Need an irule to pop-up a notification over a webpage with a "click here for more information" content.
This can be statically hosted too or just a pop-up once every time one logs in. Any ideas?
kraysco_322584
Mar 29, 2018Nimbostratus
The following pops up a warning banner on our SharePoint site. It includes a User Agent conditional that will bypass the banner in the event the user is connecting with an MS Product containing one of the agent strings listed.
Hope this helps.
-Kevin
when RULE_INIT {
set static::notification_page {
System Notification
System Notification
Acknowledgement of the privacy and security notice is required.
Once the notice is acknowledged, you will be redirected to your requested page.
Click
}
}
when HTTP_REQUEST {
set ckname NotificationDone
set ckvalue 1
set ckdomain ".[HTTP::host]"
set noticeMimeType "text/html"
MS Office Application requests cannot process javascript prompts.
Do not process for specific request for files from Office Applications.
switch -glob -- [HTTP::header value "User-Agent"]
{
"*Microsoft Office*" - "*MS FrontPage*" - "*MSOffice*" - "*FrontPage*" - "*Microsoft Office Protocol Discovery*" - "*SOAP Toolkit*" - "*Microsoft Office InfoPath*" - "*Microsoft Office Existence Discovery*" - "*Microsoft-WebDAV-MiniRedir*"
{
Microsoft Office Application Request for specific file
return
}
default
{
if { (not [HTTP::cookie exists $ckname]) }
{
HTTP::respond 200 content [subst $static::notification_page] Mime-Type $noticeMimeType
}
}
}}
- action_-_322447Jan 25, 2019Nimbostratus
This is very cool, thank you for sharing.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects