.htaccessでのIP制限
hogehoge/foo以下を123.456.789.0以外からアクセスできないようにする。
# restrict uri <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^.*/foo.*$ RewriteCond %{REMOTE_ADDR} !123.456.789.0 RewriteRule ^(.*)$ / [R=301,L] </IfModule>