ITEASY

닫기

추천 검색어
# 클라우드
# VPN
# 무료서비스
# 호스팅
# 이벤트

이전 단계

기술문서

Apache 특정 브라우저의 접속을 차단

2007. 09. 05

특정 브라우저의 접속을 차단

  

SetEnvIfNoCase User-Agent "^Microsoft URL Control" dont_want


<directory usr="" local="" apache="" htdocs="">

  <limit get="" post="">

   Order Allow,Deny

   Allow from all

   Deny from env=dont_want

  </limit>

</directory>


SetEnvIfNoCase User-Agent "^Wget" bad_bot

SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot

SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot


The 'SetEnvIfNoCase' simply sets an enviornment (SetEnv) variable called

'bad_bot' If (SetEnvIf) the 'User-Agent' string contains Wget, EmailSiphon, or

EmailWolf, regardless of case (SetEnvIfNoCase). In english, anytime a browser

with a name containing 'wget, emailsiphon, or emailwolf' accesses our website,

we set a variable called 'bad_bot'. We'd also want to add a line for the

User-Agent string of any other Spidert we want to deny.


Now we tell Apache which directories to block the Spiderts from with the

<directory> directive: 


<directory "="" home="" evolt="" public_html="" users="">

    Order Allow,Deny

    Allow from all

    Deny from env=bad_bot

</directory></directory>

이전 글 mod_url Apache 한글파일 사용시 추가할 모듈

2007. 09. 05

다음 글 Apache 다른 곳에서 images를 link하지 못하도록 설정

2007. 09. 05

목록

무엇이든 물어보세요

아이티이지 전문가가 궁금하신 점을 쉽고 빠르게 해결해 드리겠습니다.

고객센터 1600-8324
내선번호
  • 내선 1 서버 / IDC

  • 내선 2 클라우드

  • 내선 3 관리대행 / ITO

  • 내선 4 도메인

  • 내선 5 보안 서비스 문의

  • 내선 6 문자 / 카카오비즈메시지

  • 내선 7 Microsoft365

  • 내선 8 마케팅/서비스 제휴

  • 내선 9 홈페이지 제작

  • 내선 0 기타서비스

  • 내선 11 긴급 장애

휴일 긴급 연락처010-3124-8320

평일 9:00~18:00 (IDC 긴급 장애처리 24시간 운영)

FAX 02-6264-8321

문의하기