안녕하세요, 하마연구소 입니다.
allow1.yourdomain.com
과 allow2.yourdomain.com
으로만 아파치 웹서버로 접근가능하도록 .htaccess의 rewrite engine을 설정하는 방법입니다.allow3.yourdomain.com
으로 접근하면 forbidden(403) 오류가 발생합니다.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^allow1.yourdomain.com$
RewriteCond %{HTTP_HOST} !^allow2.yourdomain.com$
RewriteRule .* - [F,L]
감사합니다.