Bingpreview revokes one time link in email

Outlook.com seems to be using the BingPreview crawler to crawl links in emails.

But one-time links are marked as used / expired after opening the email and before the user gets the opportunity to use them.

I am trying to add rel = "nofollow" to <a>, but without success.

How to block the crawler for each link via email?

thanks

+4
source share
2 answers

I did the same.

$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
        // Deny access for the BingPreview bot, used by outlook.com on links in e-mails ad Slackbot
        if (strpos($user_agent, 'BingPreview') !== false || strpos($user_agent, 'Slackbot') !== false) {
            header('Status: 403 Forbiden', true, 403);
            exit(1);
        }
+3
source

. , Outlook, , "BingPreview".

HTML-.

, user-agent script. , .

, ( ).

0

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


All Articles