angel1993 Posted May 5, 2010 Share Posted May 5, 2010 i have one web, if enter user in web donate 1 point, once a day.. but people cheat! a web proxy! HELP I have Spanish no speak english -------------------------------------- In this post I used google translator, I have a problem that my site is that if a person enters a link is given points, can only be done once a day per IP, but people use proxies and there is a lot points, I need to prevent Web proxy Quote Link to comment https://forums.phpfreaks.com/topic/200765-one-problem-to-web-proxy/ Share on other sites More sharing options...
Muddy_Funster Posted May 5, 2010 Share Posted May 5, 2010 Usted necesidad de investigar cómo utilizar cookies. Si se obliga a las cookies, reducir el proxy como el spoofing "cookie" no puede llegar al cliente de la misma manera que la IP del cliente no puede llegar a sus cheques. Translated with Google Translator --------------------------------------------------- Original: You need to research how to use cookies. If you force cookies you will cut down on proxy spoofing as the cookie can not get to the client the same way the client IP can not get to your checks. Quote Link to comment https://forums.phpfreaks.com/topic/200765-one-problem-to-web-proxy/#findComment-1053455 Share on other sites More sharing options...
ignace Posted May 5, 2010 Share Posted May 5, 2010 Why not donate the point when they login? The problem is that you probably do something like: points = points + 1 In your database and thus have no idea which days they logged in. Change your database design to: points (user_id, date) When they login, check if an entry exists for that day: WHERE user_id = $uid AND date = curdate() If it doesn't add one. The get the number of points for a user, use: SELECT count(*) AS user_points FROM points WHERE user_id = $uid This technique has the advantage that when even if the user would use a proxy you could remove their points by looking up dates and removing any duplicates. To create a ranking, use: SELECT .., count(*) AS user_points FROM points GROUP BY user_id ORDER BY user_points DESC Quote Link to comment https://forums.phpfreaks.com/topic/200765-one-problem-to-web-proxy/#findComment-1053459 Share on other sites More sharing options...
angel1993 Posted May 5, 2010 Author Share Posted May 5, 2010 Usted necesidad de investigar cómo utilizar cookies. Si se obliga a las cookies, reducir el proxy como el spoofing "cookie" no puede llegar al cliente de la misma manera que la IP del cliente no puede llegar a sus cheques. Translated with Google Translator --------------------------------------------------- Original: You need to research how to use cookies. If you force cookies you will cut down on proxy spoofing as the cookie can not get to the client the same way the client IP can not get to your checks. Very Thanks, Very sympathetic,. if you were Spanish I would like to have you as a friend .. but being English we do not learn nothing: D Quote Link to comment https://forums.phpfreaks.com/topic/200765-one-problem-to-web-proxy/#findComment-1053463 Share on other sites More sharing options...
Muddy_Funster Posted May 5, 2010 Share Posted May 5, 2010 erm...thanks...i think Quote Link to comment https://forums.phpfreaks.com/topic/200765-one-problem-to-web-proxy/#findComment-1053466 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.