Hey, I was going to use $_SERVER[‘REMOTE_ADDR’] to get the IP address but when I tested it on me, it returned 127.0.0.1? Isn’t that the return IP? Is it because I have a router? What can I do to make it return the true IP? THanks
@NogDogDec 30.2005 — #Were you testing locally on your PC? If so, that address is probably valid (you're not actually going out to the internet). If you run it on a webserver on the internet, you should then see your internet IP address.
@sftrprodauthorDec 30.2005 — #Ok, I went to an "what's my IP" style website and it returned the following:
Your IP Is 81.96.255.163
Proxy Detected Is 82.3.32.73
Which would I enter into the database to simulate me signing in from the outside? Also, could you tell me the difference between the two? I believe the first one is just the standard IP for a router, because when I put it into Firefox it comes up with my Router page.
whichever that page returns is your IP address as the internet sees it, the other is most likely an address used to distinguish between computers on your local network.
@pratik_learnerDec 31.2005 — #Hey gotta q? If ip's of dialup users are not static that means logging their IP's ( eg in polls and such scripts) may be useless. And is the MAC address present for all devices accessing the internet and furthermore is it unqiue for all of them
@pratik_learnerJan 01.2006 — #OK then how come poll-systems are foolproof if one can delete the cookies or they get deleted every day by a cache cleaning soft. Eh?
@LiLcRaZyFuZzYJan 01.2006 — #OK then how come poll-systems are foolproof if one can delete the cookies or they get deleted every day by a cache cleaning soft. Eh?[/QUOTE] in those cases you can only vote when you're signed in
@pratik_learnerJan 01.2006 — #Well this makes no sense at all. A poll is something which sits at the site and if very few hardly click on it and then very few of the users(not guests) would do so. So how many votes do you get
@LiLcRaZyFuZzYJan 01.2006 — #if you want a foolproof poll, then you'd have to have your users signed in and somehow verifiy their identity so they can't register many accounts. but who would want to do that..
for example, the petition that you can sign in my sig does only check if the e-mail adress is already in the database, not the IP, or cookies, etc..and it was sufficient to keep most spammers and double signers away. (there was like 2 unintentional double signatures)