From 7.0.2, FortiWeb supports Lua scripts to perform actions that are not currently supported by the built-in feature set. You can use Lua scripts to write simple, network aware pieces of code that will influence network traffic in a variety of ways.
In FortiWeb, the scripting language only supports HTTP and HTTPS policy in Reverse Proxy mode. And, FortiWeb uses the lua version 5.4.
Please refer to the Script Reference Guide for more details.