I need to do this really badly...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
jclarkkent2003
Forum Contributor
Posts: 123
Joined: Sat Dec 04, 2004 9:14 pm

I need to do this really badly...

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
jclarkkent2003
Forum Contributor
Posts: 123
Joined: Sat Dec 04, 2004 9:14 pm

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post 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.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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 :)
Locked