I would like to restrict a page from being veiwed, except by certain IPs. For example, mine. My IP isn't static, it's within a small range. Assume, for the purposes of this post, the range is 160.0.0.0 - 160.255.255.255
Is it possible to only allow an IP from this range to view the page.
I have come up with the below so far, but i would like it more specific, if that's possible
Why would you need to make sure the IP is between 160.0 and 160.255?
I could just make sure the IP starts with a "1", but making sure it starts with 160 is more secure/specific. In the same way, making sure the IP is between 160.0 and 160.255 is further secure.
160. is the same as 160.0 - 160.255. 0-255 is the full possible range of values. Making sure the trailing dot is after the 160 is all that's required to check if the IP, being IPv4, is in the range of 160.0 through 160.255 and all possible children.
160. is the same as 160.0 - 160.255. 0-255 is the full possible range of values. Making sure the trailing dot is after the 160 is all that's required to check if the IP, being IPv4, is in the range of 160.0 through 160.255 and all possible children.
Thank you. It makes sense now. I did not know 0-255 is the full possible range of values. Sorry to have wasted your time.