I try to block spam bot with nginx oxwall rewrite rule that available on docs.
the problem is with oxwall is not working, they still access the site. Im also running wordipreeess on same server and with wordipreeess it is working fine.
you know wordipreeess is
I try to figure t out what is happening with this oxwall nginx rule,
#RewriteCond %{REQUEST_URI} !^/index\.php
#RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
#RewriteCond %{REQUEST_URI} !/ow_updates/
#RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
#RewriteRule (.*) index.php
if ($uri !~ "^/index.php"){
set $rule 1$rule;
}
if ($uri !~ "/ow_updates/index.php"){
set $rule 2$rule;
}
if ($uri !~ "/ow_updates/"){
set $rule 3$rule;
}
if ($uri !~ "/ow_cron/run.php"){
set $rule 4$rule;
}
if ($uri ~ "(/|.php|.html|.htm|.xml|.feed|robots.txt|.raw|/[^.]*)$"){
set $rule 5$rule;
}
if ($rule = "54321"){
rewrite /(.*) /index.php last;
}
if ($http_user_agent ~* aBot|bbot|cbot|dbot){
return 403;
}
that config are not working, need suggestion:))