On many sites, you can often see external links that are “closed” to the site domain. For example, when the author wrote the news on
example.com , he put a link to
yandex.ru , but the enemy machine, while maintaining, skillfully replaced this link with
example.com/redirect/yandex.ru or, even worse, with some
example .com / redirect / 7345435 .
This is done if someone does not know, for reasons of search (or TCI / PR) greed. The search engine machine scans the site and identifies the number of external links. Therefore, the webmaster of example.com’s task is to make all links “internal”, i.e. within your domain.
The idea is to use js. As soon as the page is generated, js runs through the whole page and from all links like
example.com/redirect/yandex.ru cuts off the first part. Those. The search engine machine sees the “closed” link, and the user sees a normal link, which allows you to immediately understand the destination.
')
“Closed” links can be searched for either by the entry “https: //example.com/redirect/” or by some class added to the converted links.