Check out example codes for "make so only certain ip's can accesss html file". It will help you in understanding the concepts better.

Code Example 1

# ALLOW ONLY MULTIPLE IPs
<Limit GET POST PUT>
 Order Deny,Allow
 Deny from all
 Allow from 123.456.789
 Allow from 456.789.123
 Allow from 789.123.456
</Limit>
ErrorDocument 403 path/custom-message.html
<Files path/custom-message.html>
 Order Allow,Deny
 Allow from all
</Files>

Learn ReactJs, React Native from akashmittal.com