| 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: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.