# Cross-version Upgrades
To upgrade the module, you need to reinstall it according to the instructions in installation guide.
# Upgrade from 9.x.x
to 10.x.x
- If you use the directive
waf_http_status
, replace it with the directivewaf_action
according to the documentation. - If you set the parameter
size
of the directivewaf_cc_deny
, you should replace it with the parameterzone
according to the documentation. - If you use the parameter
CAPTCHA
of the directivewaf_cc_deny
, you should use the directivewaf_action
instead, according to the documentation.
# Upgrade from 8.x.x
to 9.x.x
- Install the dynamic libraries and headers for libmodsecurity (opens new window).
- Run the command
git clone -b v2.3.0 https://github.com/troydhanson/uthash.git lib/uthash
in the root of the project. - Remove some parameters from the command
waf_mode
, if you are using them.- LIBINJECTION
- LIBINJECTION-SQLI
- LIBINJECTION-XSS
- ADV
- Delete the file
advanced
for advanced rules. 5. - The parameter
ADV
of the directivewaf_priority
is removed, please delete it if you use this parameter. - A new parameter
MODSECURITY
has been added to the directivewaf_priority
. If you use this directive, please fill in the parameter in the appropriate place.
# Upgrade from 7.x.x
to 8.x.x
- Install the dynamic libraries and headers for
libcurl
. - Run the command
git clone https://github.com/DaveGamble/cJSON.git lib/cjson
in the root of the project. - Run the command
git clone https://github.com/libinjection/libinjection.git lib/libinjection
at the root of the project. - If you used the directive
waf_mode
and used the directive's parametersCC
orCACHE
, remove both parameters. The function of each of these two parameters has been moved into the directivewaf_cc_deny
andwaf_cache
respectively. - If you want to enable CC protection, change the parameter of the directive
waf_cc_deny
, for example, changewaf_cc_deny rate=2000r/m duration=1h
towaf_cc_deny on rate=2000r/m duration=1h
. - If you want to enable caching, change the parameter of the directive
waf_cache
, for example, changewaf_cache capacity=50
towaf_cache on capacity=50
. - If you use the directives
waf_cc_deny
orwaf_cache
in thehttp
context, move these two directives to a lower context, such as to theserver
context. - If you use the directive
waf_cache
and use the directive's parametersinterval
orpercent
, remove these two parameters, which have been removed. - If you use the directive
waf_priority
, addVERIFY-BOT
andCAPTCHA
to it.
# Upgrade from 6.x.x
to 7.x.x
- If you use the directive
waf_cc_deny
in thehttp
block, move this directive to a more internal level.
# Upgrade from 5.x.x
to 6.x.x
- Create a new empty file named
advanced
in the rules directory. - If the directive
waf_priority
is used, you can delete it or modify it according to the directive in the documentation.
← Log Known Issues →