Jump to content


Photo

How to generate a random ip address?


  • Please log in to reply
2 replies to this topic

#1 php_joe

php_joe
  • Members
  • PipPipPip
  • Advanced Member
  • 175 posts

Posted 26 October 2006 - 03:06 PM

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 $_SERVER['REMOTE_ADDR']

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

Thanks,

Joe
[url=http://darkswordsguide.com][/url]

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 26 October 2006 - 03:12 PM

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 typically is not used for the most upright practices :P
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 php_joe

php_joe
  • Members
  • PipPipPip
  • Advanced Member
  • 175 posts

Posted 26 October 2006 - 03:17 PM

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
[url=http://darkswordsguide.com][/url]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users