특정 IP, 도메인 차단하기 (.htaccess)

페이지 정보

no_profile 최고관리자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일 21-02-22 20:40 1,938 0

본문

# 특정 IP를 차단합니다.<Files *> Order allow,deny Allow from all Deny from xxx.xxx.xxx.xxx Deny from xxx.xxx.xxx.xxy Deny from.*example\.com.*</Files> # 특정 IP를 허용 <Files *> Order deny,allow Deny from all Allow from xxx.xxx.xxx.xxx Allow from xxx.xxx.xxx.xxy Allow from.*example\.com.*</Files> # 특정 도메인에서 유입되는 방문자 차단하기 RewriteEngine on RewriteCond %{HTTP_REFERER} baddomain1\.com [NC,OR] RewriteCond %{HTTP_REFERER} baddomain2\.com [NC] RewriteRule .*-[F]

추천 0

댓글목록