I am setting up trialpay for my website. The website shows :
Requests originate from the following IP address range: 18.104.22.168 - 22.214.171.124
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: