[linux] Apache referer 체크를 통한 외부 참조 제한


다른 곳에서 첨부파일(이미지)에 대한 링크를 하지 못하도록 방지
SetEnvIf Referer "^http://localhost/" referal_localhost
SetEnvIf Referer "^http://127.0.0.1/" referal_localhost
SetEnvIf Referer "^http://blog.redjini.com/" referal_localhost
<Directory /data/htdocs/blog.redjini.com/attach>
Order Deny,Allow
Deny from all
Allow from env=referal_localhost
</Directory>

"프로그래밍 / Linux & Shell Script" 분류의 다른 글

[shell script] bash read command (0)2014/02/11
[linux] shell command 로그 남기기 (0)2014/01/27
[linux] Linux Console에서 BEEP 사운드 끄기 (0)2014/01/27
[shell] netstat (0)2014/01/22
[shell script] 배열(Array) 사용하기 (0)2014/01/10
[shell script] 함수(Function) 사용하기 (0)2014/01/09
[linux] 메모리 (0)2013/12/17
[shell script] Here Documents (0)2013/11/26
[shell script] directory exists check (0)2013/11/20
[shell script] 실행 경로 구하기 (0)2013/10/24


Powered by Textcube