링크: 이미지 외부 유출 방지용 웹서버 설정 (아파치 nginx)

1 minute read

———- apache SetEnvIfNoCase “^(.).도메인/” loacl_refe(변수명)      <Files ~ “.(gif|jpg|jpeg|png|bmp|GIF|JPG|JPEG|PNG|BMP)$”>       Order deny,allow       Deny from env=local_refe(변수명) </Files>   ———– apache 용 테스트 샘플 SetEnvIfNoCase Referer “^(.).09form.com/” local_refe SetEnvIfNoCase Referer “^(.).blogspot.kr/” local_refe SetEnvIfNoCase Referer “^(.).blogspot.com/” local_refe SetEnvIfNoCase Referer “^(.).s-oilbonus.com/” local_refe SetEnvIfNoCase Referer “^(.).storefarm.com/” local_refe SetEnvIfNoCase Referer “^(.)storefarm.naver.com/” local_refe SetEnvIfNoCase Referer “^(.).storefarm.naver.com/” local_refe SetEnvIfNoCase Referer “^(.)swindow.naver.com/” local_refe SetEnvIfNoCase Referer “^(.).brandi.co.kr/” local_refe SetEnvIfNoCase Referer “^(.)blogId=mintchoco007” local_refe SetEnvIfNoCase Referer “^(.)gmarket.co.kr/” local_refe SetEnvIfNoCase Referer “^(.*).gmarket.co.kr/” local_refe

———- nginx         location ~ .(jpe?g|png|gif|JPE?G|PNG|GIF)$ {                      valid_referers blocked server_ck                                ~egloos.com/ ; (차단할 서버명, 스페이스로 구분)                       if ($invalid_referer = ‘’) {                               return 403 ;                       }              }     


상세는 링크 따라가서 보면 설명이 되어있음. https://phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=81613&sec=1&auto_login=&id_save=1 WikixUnknown 글




🔗original-link

Updated: