Well, the name basically talks about it.
But for more information.,
This method works, but ..
$ip = '1.1.1.1'; curl_setopt($handle, CURLOPT_HTTPHEADER, array("REMOTE_ADDR: $ip", "X_FORWARDED_FOR: $ip"));
It only adds these two keys to the $_SERVER
HTTP_REMOTE_ADDRHTTP_X_FORWARDED_FOR
The key REMOTE_ADDR is still the same.
Can I change REMOTE_ADDR ? The answer here is NO . But the comment also says that It can, however, NOT be the real IP address of the user , because it can be hidden by proxies and other methods. This is why the general rule does not depend on $_SERVER['REMOTE_ADDR'] for the security function.
With all this, is there a curl php method that also hides / masks / changes ip? (any php method other than the above code will do.)
AND
Is there a way to counter the method OR Is there a way to get the user's ACTUAL REAL IP ?
Hooray!
Jo E. source share