I am setting up trialpay for my website. The website shows :
Requests originate from the following IP address range: 184.108.40.206 - 220.127.116.11
In PHP, how do I check to see if the bot/person visiting my auth page falls within the above IP range?
Something along those lines. And yes, this should probably be moved to Stackoverflow.
Since you are dealing with ip addresses, it's probably easier to treat them as integers instead of strings. You can use the
Here's a working function to help you out: