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 220.127.116.11 Require ip 18.104.22.168 </RequireAny>
Be sure to replace 22.214.171.124 and 126.96.36.199 with the IP addresses you want to allow.
Apache also offers more information on configuring access control from your app's .htaccess file.