Rumah > Soal Jawab > teks badan
Sekarang pelayan y sepatutnya DOS. Sebahagian daripada log akses adalah seperti berikut:
27.211.209.120 - - [17/Jul/2016:10:16:32 +0800] "GET /forum.php?&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&&wangzhanbeihei&chongzhuangwangzhan&&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&19541 HTTP/1.1" 200 31 "http://106.187.97.172/info.php" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)"
1.189.19.82 - - [17/Jul/2016:10:16:32 +0800] "GET /forum.php?&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&&wangzhanbeihei&chongzhuangwangzhan&&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&2322 HTTP/1.1" 200 31 "http://106.187.97.172/info.php" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
223.246.197.118 - - [17/Jul/2016:10:16:32 +0800] "GET /forum.php?&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&&wangzhanbeihei&chongzhuangwangzhan&&wangzhanbeihei&chongzhuangwangzhan&chongzhuangfuwuqi&7147 HTTP/1.1" 200 31 "http://106.187.97.172/info.php" "Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53"
Kemudian rujuk untuk menunjukkan semua dari
http://106.187.97.172/info.php
Saya mengkonfigurasi nginx melalui
map $http_referer $bad_referer {
default 0;
"106.187.97.172/info.php" 1;
}
dan
location / {
if ($bad_referer) {
return 403;
}
Selepas memulakan semula nginx
Log nginx masih menunjukkan 200 ok untuk akses? Di mana salah saya?
仅有的幸福2017-05-16 17:17:43
Gunakan pecutan Alibaba Cloud, Amazon Cloud atau Baidu Cloud untuk menyelesaikan nama domain, yang boleh menentang DoS