I’m using this code to allow only my ip to access the site
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</IfModule>
Now I would like to allow my friends ip to access the site. How to specify multiple ips in htaccess?
Use an .htaccess file to restrict the site and add:
See documentation for more details.