Feature Showcase: Bot Identification HTTP Headers

Priority Prospect
November 8, 2020

Hey there!

As you may know, we at Priority Prospect love innovation and making our clients happy. That’s why we are back with a new feature showcase. Today we are showing you our newest feature: bot identification HTTP headers.

Whoa, what is a bot identification header?

It’s a header that our network attaches to you web browser request. There are total of 3 new headers that we added to requests.

  1. PP-BOT: Its possible values are 0 and 1. 0 means that we couldn’t identify the visitor or we are sure that visitor is not a bot. 1 means that the visitor is bot.
  2. PP-BOT-TYPE: Its possible values right now are: GOOGLEBOT, BINGBOT, BAIDUSPIDER, YANDEXBOT, AHREFSBOT, SEMRUSHBOT, M12BOT. If the visitor is not any of those types, this header will not be included in the request. We can identify thousands of bots, but since these 7 are most relevant to our customers we decided to include only those. If you have other bots that you want us to display, please let us know.
  3. PP-COUNTRY: As the name says, it’s just a header containing visitor’s country code in ISO 3166-1 alpha-2 format eg: EE, US, AU, CA, etc.

What can I do with those headers?

I’m glad you asked, here comes the fun part. You can cloak your money site links. This problem is very relevant these days considering that Ahrefs and Semrush are not following robots.txt rules and blocking bots becomes a lot more difficult since there’s just so many of them.

Here’s a simple pseudo code example:

if PP-BOT is 1 and PP-BOT-TYPE is "GOOGLEBOT":
    return '<a href="https://monesite.com">Money Keyword</a>'
else:
    return '<a href="https://cloakyurl.com">Cloak Anchor</a>'

You can use same method to hide your affiliate links, pieces or whole blocks of content or whatever you need to do.

Here’s how you can use them with PHP:

  1. $_SERVER['HTTP_PP_BOT']
  2. $_SERVER['HTTP_PP_BOT_TYPE']
  3. $_SERVER['HTTP_PP_COUNTRY']

You may also use htaccess like this to block all visitors from Russia and China:

RewriteCond %{HTTP:PP-COUNTRY} ^(RU|CN)$
RewriteRule .* - [F]

Conclusion

That’s it for today. Now it’s time to become creative. If you see false positives, make sure you contact us ASAP! We are planning to create a plugin for WordPress to make link cloaking easier. If you have any suggestions, let us know.

Disclaimer: Please keep in mind that this feature is experimental and may not display valid information. Priority Prospect OÜ does not take any responsibility for any kind of problems that may occur including deindexing of the website from search engines or financial loss.

Like what you see? Share with a friend
Priority Prospect

Priority Prospect

This account is utilized to share insightful content about succeeding and thriving within the SEO industry, with a particular focus on strategies for success with Priority Prospect.

Need Diverse IP Addresses?

Priority Prospect is the leading cloud IP address provider that offers IP address services to agencies and companies of any size.
Get Started

Related Posts

The Power of 9: A Journey Shaped by You The Power of 9: A Journey Shaped by You

Priority Prospect will turn 9 years old Today, on 2 June 2025. It’s difficult to believe that it has been so long already. Nine years ago, we set out with a simple yet powerful idea: do better. And over these nine years, we’ve done exactly that. We’ve reimagined what PBN hosting can be, and today, […]

Announcing New Website Migration Tool Announcing New Website Migration Tool

We are excited to introduce a powerful new feature designed to simplify your workflow: our website migration tool for shared hosting. This tool makes it easier than ever to transfer your websites from external hosting providers directly into your Priority Prospect shared hosting environment. Getting Started Getting started is easy. Just add your domain through […]

Announcing Our Spring Sale 2025 Announcing Our Spring Sale 2025

We’re excited to announce the launch of our Spring Sale! From March 24 to March 28, 2025, all new dedicated and shared IP address orders are available at 20% off. Use the promo code SPRING2025 at checkout to take advantage of the discount. Whether you're growing your existing network or starting a new SEO project, […]

1 2 3 29