a question about changing the ip

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

Post Reply
spyshow
Forum Newbie
Posts: 2
Joined: Thu Mar 20, 2008 7:08 pm

a question about changing the ip

Post by spyshow »

hiiii
i want to make a php script that take an ip address and visit a web page with that ip
can any ody help me with that
is there any class to do this???
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: a question about changing the ip

Post by yacahuma »

so you want to simulate a client visit to a site? I am not an expert but I dont think you can change that data. The ip address is at the network layer of the osi model. which means that , the ip information is provided by the routers and not the application.
Last edited by yacahuma on Thu Mar 20, 2008 11:16 pm, edited 1 time in total.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Re: a question about changing the ip

Post by anjanesh »

If the browser is responsible for sending the Remote IP Address field, then you can easily manipulate this to show a custom IP.
spyshow
Forum Newbie
Posts: 2
Joined: Thu Mar 20, 2008 7:08 pm

Re: a question about changing the ip

Post by spyshow »

i think we can do that by socket (i'm not sure ) here an example
http://www.bewebmaster.com/113.php

will that works????
mVeliki
Forum Newbie
Posts: 8
Joined: Mon Mar 17, 2008 4:42 pm

Re: a question about changing the ip

Post by mVeliki »

Make "iframe" in your web page, and set its "src" to target URL.
Visito'r browser will receive such HTML and then generate additional request to target site from visitor's IP.
It is enugh for generating traffic but to getting received content you must use javascript.
Post Reply