diff --git a/index.php b/index.php index 3b9d06f..0d10146 100644 --- a/index.php +++ b/index.php @@ -10,7 +10,8 @@ function getContent($url, $geturl = false) CURLOPT_FOLLOWLOCATION => true, CURLOPT_USERAGENT => 'okhttp', CURLOPT_ENCODING => "utf-8", - CURLOPT_AUTOREFERER => true, + CURLOPT_AUTOREFERER => false, + CURLOPT_REFERER => 'https://www.tiktok.com/', CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, @@ -49,7 +50,8 @@ function getContent($url, $geturl = false) CURLOPT_FOLLOWLOCATION => true, CURLOPT_USERAGENT => 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0', CURLOPT_ENCODING => "utf-8", - CURLOPT_AUTOREFERER => true, + CURLOPT_AUTOREFERER => false, + CURLOPT_REFERER => 'https://www.tiktok.com/', CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false,