1
0
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:
alopexc0de 2014-07-22 15:54:40 -04:00
parent 9cabd24d19
commit 4a66e9aa3b
No known key found for this signature in database
GPG Key ID: 48E847F18074C953

View File

@ -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);
@ -85,4 +85,4 @@
return $output;
}
?>
?>