Following the post:
I am not able to whitelist two public IPs of mine, while blocking other IPs for Magento admin panel. I have custom path set up for admin panel.
I have tried both:
# Whitelist an IP address for the admin panel
RewriteCond %{REMOTE_ADDR} !^xx.xx.xx.xx
RewriteCond %{REMOTE_ADDR} !^xx.xx.xx.xx
RewriteRule ^(index.php/)?admin/ - [L,R=403]
and:
# Whitelist an IP address for the admin panel
RewriteCond %{REMOTE_ADDR} !^xx.xx.xx.xx
RewriteCond %{REMOTE_ADDR} !^xx.xx.xx.xx
RewriteRule ^(index.php/)?custom-path-to-admin/ - [L,R=403]
But none of them seem to work, am I missing anything? (obviously xx.xx.xx.xx have been replaced with my public IP).