Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Hackers ddos server with POST /adm/ requests, there are mix of php and static content in /adm. how to block this particular location for all except whitelisted ip?

I tried:

^~ /adm/
^~ /adm/$
^~ "/adm/ $"

doesn't work, curl -I -X POST https://example.com/adm/ returns 200.

^~ /adm doesn't suite because I need to separate php-fpm and static content, ^~ /adm/.+.php partialy works, but I need also ^~ /adm/(NOT PHP) for css, etc.

~* /adm doesn't work at all I guess because other locations exists

any ideas please?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
422 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...