mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
skip javascript/mailto links index
This commit is contained in:
parent
2a843449e0
commit
9b9d40a97c
@ -100,6 +100,20 @@ foreach ($db->getCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECONDS_OFFSET
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip javascript links
|
||||||
|
if (false !== strpos($href, 'javascript:')) {
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Skip mailto links
|
||||||
|
if (false !== strpos($href, 'mailto:')) {
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @TODO skip other apps
|
||||||
|
|
||||||
// Add absolute URL prefixes to the relative links found
|
// Add absolute URL prefixes to the relative links found
|
||||||
if (!parse_url($href, PHP_URL_HOST)) {
|
if (!parse_url($href, PHP_URL_HOST)) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user