if (is_numeric(stripos($url, 'photobucket'))) { curl_setopt($ch, CURLOPT_REFERER, 'http://www.photobucket.com/'); }