Technical Tip: How to redirect request when specified cookies are not present using a LUA script
| Description | This article describes how to configure request redirection when a specified cookie is not present in an HTTP request using a LUA script. |
| Scope | FortiWeb. |
| Solution | Requirement:
Create Scripting: Go under Application Delivery -> Scripting -> Create New, define a name, input a Lua script statement. and select OK.
when HTTP_REQUEST { if not has_cookie then
Details and comments for the Lua script used in this article:
Assign the server policy with the created script under Policy -> Server Policy > edit respective server policy, enable Scripting and select the created script.
Demonstration:
Related document: |



