가상호스트 무단링크 막기?
아래의 설정이 100% 맞다고 확신은 못하겠습니다.
<--- 가상호스트
ServerAdmin your@email.com
DocumentRoot /home/user/dir
Servername your.domain.net
SetEnvIf Referer 211\.xx\.xxx\.xx link_allow <== 다운로드 허용할 IP(전 본 아이피를 사용하는 서버에서는 링크 가능하도록 하기 위해..)
SetEnvIf Referer ^$ link_allow
<== 제한을 걸 확장자들
Order Deny,Allow
Allow from env=link_allow
Deny from all
위와같이 설정을 하게 되면 설정한 확장자들에 한해 무단링크를 했을경우
============================
Forbidden
You don't have permission to access /rainbowsix.LCD on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at xxxxxxxx Port 80
=============================
같은 에러 메시지가 뜨게 됩니다.
원본: http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=105<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]</div>
<--- 가상호스트
ServerAdmin your@email.com
DocumentRoot /home/user/dir
Servername your.domain.net
SetEnvIf Referer 211\.xx\.xxx\.xx link_allow <== 다운로드 허용할 IP(전 본 아이피를 사용하는 서버에서는 링크 가능하도록 하기 위해..)
SetEnvIf Referer ^$ link_allow
<== 제한을 걸 확장자들
Order Deny,Allow
Allow from env=link_allow
Deny from all
위와같이 설정을 하게 되면 설정한 확장자들에 한해 무단링크를 했을경우
============================
Forbidden
You don't have permission to access /rainbowsix.LCD on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at xxxxxxxx Port 80
=============================
같은 에러 메시지가 뜨게 됩니다.
원본: http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=105<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 1733 |
JavaScript
폼 항목중 입력하지 않을때 경고창 띄우기
|
| 1732 | |
| 1730 | |
| 1729 |
JavaScript
아기창 자동으루 띄우고 엄마창 자동으루 죽이기
|
| 1726 | |
| 1723 |
MySQL
rrdtool 사용하기
2
|
| 1722 | |
| 1721 | |
| 1720 |
MySQL
메일,홈계정 쿼터 적용하기
|
| 1719 |
기타
파일을 분할 압축방법
|
| 1718 |
MySQL
mysql 부팅시 실행 시키기
|
| 1715 |
JavaScript
mod_rewrite 모듈 설치
2
|
| 1713 |
MySQL
phpMyadmin 웹호스팅 설정
1
|
| 1705 | |
| 1681 |
기타
머리카락 패스따기
23
|
| 1677 | |
| 1675 | |
| 1673 |
Flash
초짜의 Fade_Out_Effect 연습
1
|
| 1671 |
Flash
초짜의 Shadow_Effect 연습
1
|
| 1669 | |
| 1667 |
Flash
초짜의 Typo_Graphy 트위닝 연습
1
|
| 1638 | |
| 1595 | |
| 1550 | |
| 1527 | |
| 1487 | |
| 1475 | |
| 1458 | |
| 1456 | |
| 1454 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기