]> git.mxchange.org Git - friendica.git/commitdiff
Switching the user agent because CloudFlare has blocked the old one
authorMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 23:11:01 +0000 (01:11 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 14 Oct 2013 23:11:01 +0000 (01:11 +0200)
mod/parse_url.php

index c8670d4d967fc67b69f66da129a71b60398d6bc0..e7481a252ab70d9d082588c2cc7f3f56880d8aa2 100644 (file)
@@ -59,7 +59,7 @@ function parseurl_getsiteinfo($url) {
        curl_setopt($ch, CURLOPT_TIMEOUT, 3);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
-       curl_setopt($ch,CURLOPT_USERAGENT,'Opera/9.64(Windows NT 5.1; U; de) Presto/2.1.1');
+       curl_setopt($ch,CURLOPT_USERAGENT,' Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0');
 
        $header = curl_exec($ch);
        $curl_info = @curl_getinfo($ch);