Forum Discussion
ringoseagull_77
Nov 11, 2011Nimbostratus
Setting to prevent users refreshing page with F5 button?
Is there a way of preventing users from using the F5 button to refresh a web page?
I'm using Version 10.1, 2 x 1500's.
nitass
Nov 11, 2011Employee
sorry it appears HTTP::version 1.0 command is missing.
this is the revised one.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
STREAM::disable
if {[HTTP::version] eq "1.1"} {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version 1.0
}
}
when HTTP_RESPONSE {
if {[HTTP::header Content-Type] starts_with "text/"} {
STREAM::expression "@@@"
STREAM::enable
}
}
when STREAM_MATCHED {
STREAM::disable
}
}
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