How to Allow IP Addresses with a .htaccess File
If you wish to only allow specific addresses to access an app, you can add the following to your app's .htaccess file:
<RequireAny> Require ip 22.214.171.124 Require ip 126.96.36.199 </RequireAny>
Be sure to replace 188.8.131.52 and 184.108.40.206 with the IP addresses you want to allow.
Apache also offers more information on configuring access control from your app's .htaccess file.