特定のファイルにアクセスきたら404
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/hoge.html RewriteCond %{REMOTE_ADDR} !^127.0.0.1$ RewriteRule .* /404.php [L] </IfModule>
127.0.0.1以外からアクセスあったら404
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/hoge.html RewriteCond %{REMOTE_ADDR} !^127.0.0.1$ RewriteRule .* /404.php [L] </IfModule>
127.0.0.1以外からアクセスあったら404