# Allow specific IP on admin page
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?admin/* [OR]
RewriteCond %{REQUEST_URI} ^(.*)?admin/login$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?admin/dashboard$
RewriteCond %{REMOTE_ADDR} !^111.111.111.111$
RewriteCond %{REMOTE_ADDR} !^222.122.222.222$
RewriteCond %{REMOTE_ADDR} !^333.333.333.333$
#This will redirect /404 page
RewriteRule ^(.*)$ - [R=404,L]
</IfModule>