# ---- BEGIN CODE GENERATED BY ../lib.d/generate-bw-code.pl ---- -*- awk -*- # whitelist checks (generated) %%IF %USER_AGENT_WHITELIST% # check success of user_agent_whitelist (generated) if ( $fail_user_agent_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no user_agent_whitelist %%ENDIF %%IF %USER_AGENT_WHITELIST_RE% # check success of user_agent_whitelist_re (generated) if ( $fail_user_agent_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no user_agent_whitelist_re %%ENDIF %%IF %REFERER_WHITELIST% # check success of referer_whitelist (generated) if ( $fail_referer_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no referer_whitelist %%ENDIF %%IF %REFERER_WHITELIST_RE% # check success of referer_whitelist_re (generated) if ( $fail_referer_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no referer_whitelist_re %%ENDIF %%IF %ORIGIN_WHITELIST% # check success of origin_whitelist (generated) if ( $fail_origin_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no origin_whitelist %%ENDIF %%IF %ORIGIN_WHITELIST_RE% # check success of origin_whitelist_re (generated) if ( $fail_origin_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no origin_whitelist_re %%ENDIF %%IF %HOST_WHITELIST% # check success of host_whitelist (generated) if ( $fail_host_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no host_whitelist %%ENDIF %%IF %HOST_WHITELIST_RE% # check success of host_whitelist_re (generated) if ( $fail_host_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no host_whitelist_re %%ENDIF %%IF %PATH_WHITELIST% # check success of path_whitelist (generated) if ( $fail_path_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no path_whitelist %%ENDIF %%IF %PATH_WHITELIST_RE% # check success of path_whitelist_re (generated) if ( $fail_path_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no path_whitelist_re %%ENDIF %%IF %PARAM_WHITELIST% # check success of param_whitelist (generated) if ( $fail_param_whitelist ) { %NGINX_ACTION_ABORT%; } %%ELSE # no param_whitelist %%ENDIF %%IF %PARAM_WHITELIST_RE% # check success of param_whitelist_re (generated) if ( $fail_param_whitelist_re ) { %NGINX_ACTION_ABORT%; } %%ELSE # no param_whitelist_re %%ENDIF # ---- END CODE GENERATED BY ../lib.d/generate-bw-code.pl ----