Getting Different IP each time
- by Sarfraz
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?