0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Magento-Restrict ip access、IP制限をかける方法

Posted at

if you want to restrict ip to access your backend you can set up ip list that can be access

  • ?重複0或1次
  • ^匹配
  • ()條件指定
  • !不匹配

ip:10.10.10.10

.htaccess

RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/? [NC]
RewriteCond %{REMOTE_ADDR} !^10.10.10.10
RewriteRule ^(.*)$ / [F,L]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?