blocking every requests coming to scan wp-content
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s

This commit is contained in:
2026-03-13 10:06:27 +00:00
parent 3570e436f8
commit a378e0a41d
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -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;