Forum Discussion
SSHSSH_97332
Nimbostratus
Nov 13, 2012Sending Block Page to user
i want to send block page to user
will the below Irule work :
when HTTP_REQUEST {
log local0. "Log me one time"
log local0. " [HTTP::uri] "
HTTP::respond 200 content { ...
hoolio
Cirrostratus
Nov 13, 2012The curly braces around the content prevent variable expansion. You can use double quotes and escape all the meta-characters except around [HTTP::uri] or use subst instead. Here's a recent example:
http://www.tcl.tk/man/tcl8.4/TclCmd/subst.htm
https://devcentral.f5.com/community/groupdetails/tabid/1082223/aft/2158958/asg/50/default.aspx2234979
Aaron
when HTTP_REQUEST {
log local0. "Log me one time"
log local0. " [HTTP::uri] "
HTTP::respond 200 content [subst {
Blocking Page
We are sorry, but you were blocked due to [HTTP::uri]
}]
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