Nginx 특정 IP 막기
2025. 2. 1. 18:31ㆍWeb Server/nginx
error.log에 이상한 접속이 있어서 해당 IP의 접근 차단
server {
listen 80;
server_name {도메인};
# Deny access for the specific IP address
deny {ip};
allow all;
# Other configuration settings
root {디렉토리};
index index.html index.htm;
# ... additional configuration ...
}
'Web Server > nginx' 카테고리의 다른 글
Nginx Ubuntu nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf:307 (0) | 2025.02.03 |
---|---|
차단 IP 목록 (0) | 2025.02.01 |
Nginx 414 Request-URI Too Large 에러 조치 (0) | 2025.01.30 |
Nginx 80port를 443port로 redirect 하기 (0) | 2025.01.30 |
Nginx 파일 업로드 용량 제한 조치 (0) | 2024.12.30 |