Jump to content

How to generate a random ip address?


php_joe

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
Link to comment
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
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.