자신의 서버에서 이미지나 기타 동영상자료를 가져가지 못하게 하는 방법 > 그누보드&그샵

본문 바로가기

사이트 내 전체검색

뒤로가기 그누보드&그샵

팁텍 자신의 서버에서 이미지나 기타 동영상자료를 가져가지 못하게 하는 방법

본문

아파치 httpd.conf 의 설정을 다음과 같이 하시면 FilesMatch 의 확장자를 사용하는 파일은 접근 불가합니
다.
현재 네이버에서 이미지를 링크할 수 없는 것과 같은 결과를 보여줍니다.
트래픽을 좀 줄일 수 있는 효과도 있겠지요.

<VirtualHost 210.118.169.234>
    ServerAdmin 이메일주소@sir.co.kr
    DocumentRoot /home/계정디렉토리/public_html
    ServerName sir.co.kr
    ServerAlias www.sir.co.kr
    <FilesMatch "\.(jpe?g|gif|png|bmp|avi|swf|mpe?g|zip|z[00-99]|rar|mp[1-9]|arj|exe|asf|wm[a-z]*|ra[a-z]*|alz|ZIP|Z[00-99])$">
        Order Deny,Allow
        Allow from env=link_allow
        Deny from all
    </FilesMatch>
</VirtualHost>

==================================================================================

//sir 관리자님

출처 : http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=7&wr_id=3590

댓글목록 0

등록된 댓글이 없습니다.


Fatal error: Uncaught DivisionByZeroError: Division by zero in /home1/hyusig/public_html/bbs/list.php:123 Stack trace: #0 /home1/hyusig/public_html/bbs/board.php(231): include_once() #1 {main} thrown in /home1/hyusig/public_html/bbs/list.php on line 123