mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-09-14 15:21:53 +00:00
skip links collect with rel=nofollow attribute
This commit is contained in:
parent
e576cb69db
commit
a1e2721849
@ -936,6 +936,15 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_HOST_PAGE_QUEUE_LIMIT, time() - CRAWL_
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip links have rel=nofollow attribute
|
||||
if ($rel = @$a->getAttribute('rel')) {
|
||||
|
||||
if (false !== stripos($rel, 'nofollow')) {
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Get title attribute if available
|
||||
if (!$title = @$a->getAttribute('title')) {
|
||||
$title = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user