# 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_actionaccording to the documentation. - If you set the parameter
sizeof the directivewaf_cc_deny, you should replace it with the parameterzoneaccording to the documentation. - If you use the parameter
CAPTCHAof the directivewaf_cc_deny, you should use the directivewaf_actioninstead, 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/uthashin 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
advancedfor advanced rules. 5. - The parameter
ADVof the directivewaf_priorityis removed, please delete it if you use this parameter. - A new parameter
MODSECURITYhas 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/cjsonin the root of the project. - Run the command
git clone https://github.com/libinjection/libinjection.git lib/libinjectionat the root of the project. - If you used the directive
waf_modeand used the directive's parametersCCorCACHE, remove both parameters. The function of each of these two parameters has been moved into the directivewaf_cc_denyandwaf_cacherespectively. - 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=1htowaf_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=50towaf_cache on capacity=50. - If you use the directives
waf_cc_denyorwaf_cachein thehttpcontext, move these two directives to a lower context, such as to theservercontext. - If you use the directive
waf_cacheand use the directive's parametersintervalorpercent, remove these two parameters, which have been removed. - If you use the directive
waf_priority, addVERIFY-BOTandCAPTCHAto it.
# Upgrade from 6.x.x to 7.x.x
- If you use the directive
waf_cc_denyin thehttpblock, move this directive to a more internal level.
# Upgrade from 5.x.x to 6.x.x
- Create a new empty file named
advancedin the rules directory. - If the directive
waf_priorityis used, you can delete it or modify it according to the directive in the documentation.
← Log Known Issues →