Skip to content

Instantly share code, notes, and snippets.

@horitaku1124
Created November 25, 2013 11:12
Show Gist options
  • Save horitaku1124/7639813 to your computer and use it in GitHub Desktop.
Save horitaku1124/7639813 to your computer and use it in GitHub Desktop.
特定のURIのみIP制限したい
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteCond %{REMOTE_ADDR} !^5\.6\.7\.8$
RewriteCond %{REQUEST_URI} ^/something.html$ [NC]
RewriteRule ^(.*)$ - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment