이전에 X-forward-for 헤더를 이용해서 클라이언트 로그 찍는 방법을 소개해 드렸습니다.
2021.10.22 - [분류 전체보기] - Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For)
Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For)
Apache 앞에 LB 등 Proxy 서비스를 해주는 어플리케이션이 있을 경우 클라이언트 IP를 확인하는 방법입니다. mod_remoteip 모듈이 필요합니다. 공식 가이드 : https://httpd.apache.org/docs/2.4/mod/mod_remoteip..
gntpapa.tistory.com
conf/TrustIP에 Cloudflare IPv4 정보를 추가 후 서비스 재시작하면 사용자 IP 확인이 가능합니다.
ipv4 정보 : https://www.cloudflare.com/ips-v4
Curl을 이용한 방법
curl https://www.cloudflare.com/ips-v4 -s >> conf/TrustIP
'웹 > Apache' 카테고리의 다른 글
Apache#13 - 브라우저(클라이언트) 캐시 설정 (0) | 2021.10.22 |
---|---|
Apache#11 - remote/real IP 정보 찾기 (X-Forwarded-For) (0) | 2021.10.22 |
Apache#10 - gzip 설정 (0) | 2021.10.20 |
Apache#9 - 서버 정보 숨기기 (0) | 2018.05.20 |
Apache#8 - SSLPassPhrasedialog 오류 (0) | 2016.07.22 |