Jump to content

Archived

This topic is now archived and is closed to further replies.

php_joe

How to generate a random ip address?

Recommended Posts

Hi,

I'm playing around with a new proxy.

I noticed with other proxies that their ip address get's blocked because so many people use it.

I know that you can get the viewer's IP address using [b]$_SERVER['REMOTE_ADDR'][/b]

Is there a way to change what is return using the remote address superglobal?

Thanks,

Joe

Share this post


Link to post
Share on other sites
So, basically, you're wanting to know if you can spoof your IP address from another server? It can definitely be done, but from what I understand, it's done below the scripting level on the server itself. Also, that's getting into the gray area of what we actually cover on the boards since spoofing an IP address [b]typically[/b] is not used for the most upright practices :P

Share this post


Link to post
Share on other sites
Yes, I know it sounds shady, but if I just wanted to get around blocks I could use Ghostzilla. I don't want to randomise it (though I'm curious if it could be done, just like I'm curious about everything else), I want to use a specific address.

You see, I telecommute (working through the internet; data entry, typing, ect...) and I also travel a lot (I'm currently in China) but some of the sites that I work through are restricted to the USA so I can't use them when I'm on a trip. I'd like to be able to set up my proxy to reflect the IP address of my home in Oregon so that I can continue to work when I'm outside the states.

I'd also like to know how to prevent others from doing this to my site  ;)

Joe

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.