mirror of
https://github.com/gamaio/lobli.git
synced 2024-12-22 19:52:40 +00:00
Change user agent of isonline 'bot' to look more bot-like.
This is purely asthetic. I may implement a robots.txt parser for this in the future if it doesn't spend too much time parsing through to follow robots.txt rules. This also isn't technically a crawler as it only checks if the remote server is online
This commit is contained in:
parent
9cabd24d19
commit
4a66e9aa3b
@ -67,7 +67,7 @@
|
||||
curl_setopt($curlInit, CURLOPT_CONNECTTIMEOUT, 10);
|
||||
curl_setopt($curlInit, CURLOPT_HEADER, true);
|
||||
curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curlInit, CURLOPT_USERAGENT, 'UnPS-GAMATechnologies (UnPS WebQuery/4-2.9; +http://lob.li)');
|
||||
curl_setopt($curlInit, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; UnPS-GAMATechnologies (UnPS WebQuery/4-2.9; +http://lob.li))');
|
||||
curl_setopt($curlInit, CURLOPT_HTTPHEADER, $header);
|
||||
|
||||
$response = curl_exec($curlInit);
|
||||
|
Loading…
Reference in New Issue
Block a user