Apache 2.4 에서 SetEnvIf 를 이용해서 bot 차단하기
페이지 정보
본문
아파치 웹서버에서 검색로봇의 접근을 차단하는 방법이다.
https://httpd.apache.org/docs/2.4/rewrite/access.html 에서 Blocking of Robots 부분
[code]
SetEnvIfNoCase User-Agent "^NameOfBadRobot" goaway
<Location "/secret/files">
<RequireAll>
Require all granted
Require not env goaway
</RequireAll>
</Location>
[/code]
* 참고
https://httpd.apache.org/docs/2.4/rewrite/access.html
https://findstar.pe.kr/2016/11/08/apache_2_4_custom_error_log_access_constrol/
https://forum.configserver.com/viewtopic.php?t=9186
https://httpd.apache.org/docs/2.4/rewrite/access.html 에서 Blocking of Robots 부분
[code]
SetEnvIfNoCase User-Agent "^NameOfBadRobot" goaway
<Location "/secret/files">
<RequireAll>
Require all granted
Require not env goaway
</RequireAll>
</Location>
[/code]
* 참고
https://httpd.apache.org/docs/2.4/rewrite/access.html
https://findstar.pe.kr/2016/11/08/apache_2_4_custom_error_log_access_constrol/
https://forum.configserver.com/viewtopic.php?t=9186
추천0
댓글목록
등록된 댓글이 없습니다.