Getting Different IP each time

Posted by Sarfraz on Stack Overflow See other posts from Stack Overflow or by Sarfraz
Published on 2010-04-23T07:00:27Z Indexed on 2010/04/23 7:03 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

Hello,

I am creating a poll script for a facebook fan page:

http://www.facebook.com/apps/application.php?id=115400635147687&v=app_115400635147687

I am getting the IP using:

$_SERVER['REMOTE_ADDR']

But the problem is that each time I refresh the page, or make an ajax call, the IP is changed everytime. Someone told me that facebook has many IPs, proxies.

Basically I need to save the IP in database, so that once a user from certain IP has voted, he should not be able to do so again.

What is the solution or alternative to this?

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook