Page 1 of 1

I need to do this really badly...

Posted: Thu Feb 16, 2006 5:19 pm
by jclarkkent2003
Hi guys,
Does ANYONE know how to SET The ip address php/apache uses to connect? I need to do this in my php script, i don't want to use proxies but I want to use the 70 ip's that I have binded to the server.

Right now it's using the MAIN or eth0 location ip and that's a REALLY bad thing.

Please help..

I'm using curl to talk over/on the web, so I need to know how I can change the ip address php shows when it touches the net....

Please help, heh, I needed this three weeks ago when i asked.

Posted: Thu Feb 16, 2006 6:20 pm
by Christopher
Hmmmmm ... let me think ... this person is using cURL ... where should I look for the answer? ... hmmmm ... cURL is software ... and ... software has documentation ... ok, but how does that help? ... hmmmmm ... I know! ... I'll check the cURL manual for this person and look up the information there ...
--interface <name>

Perform an operation using a specified interface. You can enter interface name, IP address or host name. An example could look like:

curl --interface eth0:1 http://www.netscape.com/

If this option is used several times, the last one will be used.

Posted: Thu Feb 16, 2006 6:22 pm
by jclarkkent2003
lol, u da man ! I'll try and let you know how it goes.

How about for the scripts I have that use PHP but NOT CURL.??

Example:

Scripts that use file_get_contents and other such functions which I don't want to convert to using curl on thoese since they run on server without curl, and would be a hassle to convert and also upgrade php.

Thanks so far.

Posted: Thu Feb 16, 2006 7:48 pm
by josh
jclarkkent2003 has admitted to me in PM that he is doing something dishonest.. it really isn't that surprising really, what legitimate reason could you have for switching up your IP. I would say let's not help someone who is going to do bad with that information.. that's just me.

Posted: Thu Feb 16, 2006 8:24 pm
by Roja
jshpro2 wrote:jclarkkent2003 has admitted to me in PM that he is doing something dishonest.. it really isn't that surprising really, what legitimate reason could you have for switching up your IP. I would say let's not help someone who is going to do bad with that information.. that's just me.
People haven't watched Real Genius enough.

1. He has a thread about iterating through a flat-file of items (to keep memory use low, and speed high) - Now he has his fast list of sites to attack.

2. He has a thread asking how to ping a list of IP's (to check that the sites exist before slurping)

3. He has a thread trying to get webpages through proxies (Slurp email addresses into a file)

4. He has this thread asking how to use multiple IP's to hide the fact that he's hitting all these sites that fast

5. He has a thread trying to obfuscate a script (sales to customers he doesnt trust)

[update]
6. He already overloaded apache running a version of this monstrosity

We're writing every bit of a spammer script that he is going to sell on Ebay.

I can't say ban him, because I aint a moderator, but buddy, if you were on MY forums, you'd be banned for life.

Posted: Thu Feb 16, 2006 8:31 pm
by John Cartwright
Mods will have a decision shortly.. to keep the flames away I'm going to go ahead and lock this thread.

Edit | happy 4000th Jcart :)