PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Ok, I have a service where you can only use it once. After using it, it saves your IP to a log and when you attempt to use it again it looks for your IP in the log. This code isnt working, its always restricting people, as long as there's any information in the log.
timvw wrote:*my ip*??? I have to share it with at least 250 other people that are currently behind the NAT... Which voids the idea of1 ip == 1 person...
ereg() would be another possibility.
However, timvw is right - by using this approach you'd exclude quite a lot of people while not being able to prevent users from logging in several times (by using proxies). Cookies might be worth a thought, but they can be deleted / disabled as well. The same is true for local shared objects in flash.
I would worry about multiple people using the same IP, except for that my service is very small, and will definately not be widely used. If only I could get people's mac addresses...php needs to add that.