|
|
|
@ -49,6 +49,9 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
@@ -49,6 +49,9 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
|
|
|
|
|
// Register new host |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
// Disk quota not reached |
|
|
|
|
if (CRAWL_STOP_DISK_QUOTA_MB_LEFT < disk_free_space('/') / 1000000) { |
|
|
|
|
|
|
|
|
|
// Get robots.txt if exists |
|
|
|
|
$curl = new Curl($hostURL->string . '/robots.txt'); |
|
|
|
|
|
|
|
|
@ -74,6 +77,7 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
@@ -74,6 +77,7 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
|
|
|
|
|
$hostRobots, |
|
|
|
|
$hostRobotsPostfix); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Parse page URI |
|
|
|
|
$hostPageURI = Parser::uri($q); |
|
|
|
|