특정 IP, 도메인 차단하기 (.htaccess)
페이지 정보

관련링크
본문
# 특정 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