Q:

Restrict user to access admin

We have a website and its working perfectly fine. We want to block users so they can't login into our admin section. 
We have one public IP in our factory premises to access the internet and we locally make server to access the internet on other computers. 
We want our website admin login section only accessibly within factory premises and no one can access the admin login section out of the factory or only specific registered user can login into admin section out the factory as well like our CEO and our project manager. 
is this feature possible in Magento 1.9.2.3?
Hope you people understand my problem.
thanks  

A:

Its working perfectly fine:
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123
RewriteCond %{REQUEST_URI} admin [NC]
RewriteRule ^(.*)$ / [F,L]

