Mambahkan konfigurasi tambahan pada cURL, Anda dapat mengatur ulang sesuai kebutuhan.
curl_setopt($ch, CURLOPT_USERAGENT, 'Localhost');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Forwarded-For: 127.0.0.1']);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($ch, CURLOPT_MAXREDIRS, 3);