sKunKbad Posted September 22, 2008 Share Posted September 22, 2008 I have a customer that has an account with getresponse.com, which is an online email database solution. We use cURL to send posts to getResponse. The posts include customer contact data. When a post is sent from the server, getresponse.com checks out the IP address of the sender, and if too many posts are made from an IP, getresponse.com blocks the IP. getresponse.com says that we should be using a static form to send the posts, but due to programming that is accomplishing other things with the customer data, we can't simply do this. So my question is, is there any way to fake the IP address that getresponse is seeing as the sender of the post? If there is, this may be our only hope short of changing email database companies. Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/ Share on other sites More sharing options...
JonnoTheDev Posted September 22, 2008 Share Posted September 22, 2008 Use a proxy for your CURL request. These are reliable http://pps.nntime.com/signup/ Dont use free proxy addresses if you need reliability and fast reponse times Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-647998 Share on other sites More sharing options...
xtopolis Posted September 22, 2008 Share Posted September 22, 2008 I think you might be wanting to set the referer field? curl_setopt($ch, CURLOPT_REFERER, “http://www.google.com”); Put the referer url in the request header.Referer carries the page url where the user clicked on a link to request this page. Src: http://www.decodephp.com/2007/02/26/php-curl-insight-and-a-php-alternative-example/ Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-648066 Share on other sites More sharing options...
discomatt Posted September 22, 2008 Share Posted September 22, 2008 I think you might be wanting to set the referer field? curl_setopt($ch, CURLOPT_REFERER, “http://www.google.com”); Put the referer url in the request header.Referer carries the page url where the user clicked on a link to request this page. Src: http://www.decodephp.com/2007/02/26/php-curl-insight-and-a-php-alternative-example/ Won't work. See neil.johnson's post. Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-648168 Share on other sites More sharing options...
sKunKbad Posted September 24, 2008 Author Share Posted September 24, 2008 Use a proxy for your CURL request. These are reliable http://pps.nntime.com/signup/ Dont use free proxy addresses if you need reliability and fast reponse times If getresponse sees the IP address of the proxy instead of my server, then won't I have the same issue with the single IP address? What I need is to randomize the IP so that getresponse never sees posts from the same IP (especially if the posts are simultaneous). Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-649587 Share on other sites More sharing options...
PFMaBiSmAd Posted September 24, 2008 Share Posted September 24, 2008 The IP address that the server sees is from the TCP/IP data packets. It is the IP address that the server received the request from is where it will send the response back to. If what you are doing is legitimate, you need to contact the site's administrator and work out a solution with them so that requests from your IP address are permitted. Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-649608 Share on other sites More sharing options...
sKunKbad Posted September 24, 2008 Author Share Posted September 24, 2008 The IP address that the server sees is from the TCP/IP data packets. It is the IP address that the server received the request from is where it will send the response back to. If what you are doing is legitimate, you need to contact the site's administrator and work out a solution with them so that requests from your IP address are permitted. I understand that the IP address comes from the TCP/IP packets, and I was just hoping to be able to spoof the IP somehow. I'm not interested in hacking or anything malicious in nature, just to simply have our cURL posts accepted as normal by getresponse. I did contact the getresponse admin, and they expect posts to be generated only from HTML forms, which in the case of my customer is impossible. I'm guessing that we will be switching email database services because of this issue, since it doesn't seem like there is a way to manipulate the IP address being sent in the TCP/IP packet. Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-649745 Share on other sites More sharing options...
discomatt Posted September 24, 2008 Share Posted September 24, 2008 You can spoof the IP quite easily... however, the response will be sent to that IP, which might be an issue Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-649775 Share on other sites More sharing options...
sKunKbad Posted September 24, 2008 Author Share Posted September 24, 2008 You can spoof the IP quite easily... however, the response will be sent to that IP, which might be an issue If you would private message me with the details, I would appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/125356-changing-the-sender-ip-address-seen-at-the-receiving-end-of-a-curl-post/#findComment-649783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.