I am setting up trialpay for my website. The website shows :
Requests originate from the following IP address range: 126.96.36.199 - 188.8.131.52
In PHP, how do I check to see if the bot/person visiting my auth page falls within the above IP range?
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:
Something along those lines. And yes, this should probably be moved to Stackoverflow.