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