blocking every requests coming to scan wp-content
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s
This commit is contained in:
@@ -43,6 +43,11 @@ server {
|
||||
<b style=\"color:red; font-size:18pt; border:2pt solid black; padding:5pt;\">
|
||||
You are banned!</b></center>";
|
||||
}
|
||||
location ^~ /wp-content {
|
||||
# Logs the IP in "deny IP;" format to your specific file
|
||||
access_log /etc/nginx/blacklisted.d/blacklisted-sessions.conf deny_style;
|
||||
return 444;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx/access.log my_custom_format;
|
||||
access_log /var/log/nginx/ip_audit.log ip_audit;
|
||||
|
||||
Reference in New Issue
Block a user