⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.219
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
wesellnew
/
core
/
vendor
/
spatie
/
crawler
/
src
/
View File Name :
CrawlInternalUrls.php
<?php namespace Spatie\Crawler; use GuzzleHttp\Psr7\Uri; use Psr\Http\Message\UriInterface; class CrawlInternalUrls extends CrawlProfile { protected $baseUrl; public function __construct($baseUrl) { if (! $baseUrl instanceof UriInterface) { $baseUrl = new Uri($baseUrl); } $this->baseUrl = $baseUrl; } public function shouldCrawl(UriInterface $url): bool { return $this->baseUrl->getHost() === $url->getHost(); } }