[ php ] 이미지 직접 링크 막기 > php

본문 바로가기

사이트 내 전체검색

php

[ php ] 이미지 직접 링크 막기

작성일 18-09-11 12:39

페이지 정보

작성자 웹지기 조회 4,554회 댓글 0건

본문

.htaccess 파일에 추가해서 사용


SetEnvIfNoCase Referer "^http://www.mydomain.com/" locally_linked=1

SetEnvIfNoCase Referer "^http://www.mydomain.com$" locally_linked=1

SetEnvIfNoCase Referer "^http://mydomain.com/" locally_linked=1

SetEnvIfNoCase Referer "^http://mydomain.com$" locally_linked=1

#SetEnvIfNoCase Referer "^$" locally_linked=1

<FilesMatch ".(gif|png|mp3|bmp|jpg|jpeg)$">

Order Allow,Deny

Allow from env=locally_linked

</FilesMatch>


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 82건 5 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기