Hide 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
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Hide IP?

Post by Dale »

Is their a way in PHP to view a site (possibly with a IFRAME) but with your IP Address cloaked? So the sit eyou're visiting in the IFRAME doesn't know your IP address is (eg;) 123.456.78.90 ??
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

search "+proxy +masking" on google

but why do you want to hide IP addresses :?
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

Jcart wrote:but why do you want to hide IP addresses :?

I just want to test a few things, and its not for dodgy reasons like naughty sites :p
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Hide IP?

Post by Roja »

Dale wrote:Is their a way in PHP to view a site (possibly with a IFRAME) but with your IP Address cloaked? So the sit eyou're visiting in the IFRAME doesn't know your IP address is (eg;) 123.456.78.90 ??
Its a little unclear what you mean.

For example, lets say you have a server.

You want to display whatsyourip.com FROM your server, without displaying the IP of:
You?
Your server?

If you want to hide the IP of your server, then simply use an iframe and include the content directly, which will instead show the IP of the visitor (ie, you).

If you want to hide the IP of YOU, then have your server scrape the contents from whatsyourip.com, and display it. You can use snoopy, or any number of other php libraries to grab the contents of a site for just such a purpose.

Finally, if you want to hide BOTH, then you can use an anonymizing proxy in your browser, and iframe the contents directly from your server.

That covers all the scenarios that you didnt clearly specify. :)
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Just a quick one:

"Roja" wrote:

If you want to hide the IP of your server, then simply use an iframe and include the content directly, which will instead show the IP of the visitor (ie, you).
Any example - code - how do you do this - what did you mean - my brain didn't do well in this paragraph.

Thanks Ahead !
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

rough example.

Code: Select all

...
<iframe src=&quote;http://some.remote/file_on_another_server.html&quote; />
...
Post Reply