Skip to content

Commit 0b8d8ef

Browse files
committed
Update regex.custom.pm
1 parent de3d698 commit 0b8d8ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regex.custom.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ sub custom_line {
151151
# /var/log/virtualmin/*_access_log
152152
# Non Existent Dot directory locations
153153
# (Default: 2 errors bans for 24 hours)
154-
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^(\S+) -.*[GET|POST|HEAD] (\/.).*(\s404\s)/)) {
154+
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^(\S+) -.*[GET|POST|HEAD] (\/\.).*(\s404\s)/)) {
155155
return ("Dot directory Honeypot Trap",$1,"nginx_404","2","80,443","86400","0");
156156
}
157157

158158
# /var/log/nginx/access.log
159159
# Non Existent Dot directory locations
160160
# (Default: 2 errors bans for 24 hours)
161-
if (($globlogs{CUSTOM3_LOG}{$lgfile}) and ($line =~ /^(\S+) -.*[GET|POST|HEAD] (\/.).*(\s404\s)/)) {
161+
if (($globlogs{CUSTOM3_LOG}{$lgfile}) and ($line =~ /^(\S+) -.*[GET|POST|HEAD] (\/\.).*(\s404\s)/)) {
162162
return ("Dot directory Honeypot Trap",$1,"nginx_404","2","80,443","86400","0");
163163
}
164164

0 commit comments

Comments
 (0)