아래의 설정이 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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 449 | |
| 447 | |
| 444 |
JavaScript
포토샵 액션 AutoGaussian-피부질감 수정
2
|
| 438 |
Flash
토수니
5
|
| 436 | |
| 429 | |
| 428 |
JavaScript
아파치 웹서버 프로세스 갯수 늘리기
|
| 425 | |
| 412 |
JavaScript
css를 이용한 기본적인 레이아웃..
1
|
| 411 | |
| 410 | |
| 409 |
JavaScript
불여우에서도 되는 서브메뉴가 있는 메뉴 #2
|
| 408 | |
| 407 | |
| 406 | |
| 404 |
MySQL
데이터베이스 를 사용자 계정에 설치하기
1
|
| 403 |
MySQL
gd+jpg+png+tiff rpm 설치..
|
| 388 | |
| 375 |
MySQL
php 오류정리
12
|
| 374 | |
| 373 |
기타
사용자 계정 삭제
|
| 372 |
JavaScript
chmod 허가권변경
|
| 371 |
기타
소유권변경
|
| 370 | |
| 364 | |
| 362 | |
| 359 | |
| 358 | |
| 357 |
JavaScript
vim 의 들여쓰기 + 색상 눈 덜피곤 c++ php 등.. (리눅스용)
|
| 356 |
JavaScript
vim 의 간단한 사용법
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기