Faked pagerank detection

Does anyone know how I will go about detecting a fake pager in php script im writing to run checks in the domain?

I understand that PR is fake when someone sets up 301 redirects to a high pr domain exclusively for googlebots, but I don’t know how I would simulate this to check (I think I need an exact user agent?)

thank

+3
source share
1 answer

Use the UserAgent GoogleBot and visit the site using a script (or even from your browser). (If from a script) check the HTTP response code.

Google Bot UserAgent:

Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
+2
source

Source: https://habr.com/ru/post/1769174/