Go!
 
 
July 24, 2008, 07:17:43 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Voting (Poll) problem across multiple machines  (Read 2866 times)
tvarland
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: June 05, 2007, 03:52:42 PM »

It appears that a user can vote multiple times if he logs in from a different machine than where he logged in and voted the first time.  In this tested situation the user is behind a corporate firewall which would be a very common scenario if EasyFaq is powering a company support site.
Logged
Adam
Administrator
Hero Member
*****
Offline Offline

Posts: 4.580



View Profile WWW
« Reply #1 on: June 06, 2007, 10:58:39 AM »

that's correct
i'm look at the actual IP:

Code:
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
    $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
  } elseif (isset($_SERVER["HTTP_CLIENT_IP"])) {
    $ip = $_SERVER["HTTP_CLIENT_IP"];
  } else {
    $ip = $_SERVER["REMOTE_ADDR"];
  }

I really don't know a good way to prevent this (since on the other PC there might also be someone else).
the only thing I can think of, is to check whether someone has logged in and use that in the check as well
Logged

- Joomla developer -

IMPORTANT: http://www.joomla-addons.org/option,com_smf/Itemid,7/topic,1332.0.html
Do not send support requests by PM. Post on the forum instead.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Joomla-addons.org © 2006 | www.bandhosting.nl | JCD-A Member | Newsletter | Sitemap |