How to make a reverse DNS lookup on CloudFlare in PHP?

I have a website, but it is parsed as fake googlebot useragent. I want to filter out fake googlebot by doing reverse DNS lookup. On a regular hosting, I could do this with

gethostbyaddr ($ _ SERVER ['REMOTE_ADDR'])

and was getting something like this But on CLoudFlare I get the ip address of the CLoudFlare server, not googlebot.

Try this:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.