Jump to content

using proxy server with php


v_i_p

Recommended Posts

hi everyone,
i am trying to hide my ip while executing my script, so i wrote this code to this purpose;

$requestUrl=$_POST['site'];
///ip hide
  $cUrl = curl_init();
  curl_setopt($cUrl, CURLOPT_URL, $requestUrl);
  curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($cUrl, CURLOPT_TIMEOUT, '900');
  curl_setopt($cUrl, CURLOPT_PROXY, '200.65.127.163:80');
  $pageContent = trim(curl_exec($cUrl));
  curl_close($cUrl);
////////////////


But something is wrong with this code. when i tried it with different stat scripts, hit which is added by my code is  changing. In fact, i want to add unique hits to script. can u help me please or tell me a way to hide my ip???
Link to comment
https://forums.phpfreaks.com/topic/32284-using-proxy-server-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.