[Plugin: Vote It Up] Problems with voting – Squid
Hi, I hope you are well.
Web server administrators, set up a squid (proxy) to speed up the web server.
After this, the voting system recorded the IPs of the Squid, but not the users IPs.
Add the following code in the file “compat.php” …
$ip = trim($_SERVER[‘HTTP_X_FORWARDED_FOR’]);
$ip = explode(‘,’, $ip);
$ip = array_pop($ip);
$ip = trim($ip);
$_SERVER[‘REMOTE_ADDR’] = $ip;
If you add this code, it will work, even if not using Squid or Proxy…
- The topic ‘[Plugin: Vote It Up] Problems with voting – Squid’ is closed to new replies.