Voting Error - Redirect Loop

Tash

Hi.
May 6, 2012
173
27
Hello

Im having problems with voting, idk why it works to others but it doesn't for me.
i get redirect loop error, everything is configured correctly. i configured the return url also, still dont work?
Any fix?

Im using:
IIS
REVCMS
 

Tash

Hi.
May 6, 2012
173
27
Are you using CloudFlare? Have you properly configured it for that?
No, but i use HTTP Proxy

I set the voting thing on index page , and i set my return url to index page.
After voting i want to just return to index page

but it doesnt work and it gives error {Redirect loop}
 
Last edited by a moderator:

Tash

Hi.
May 6, 2012
173
27
Are you getting their real IP from behind that proxy? Votes are validated based on the users IP, and it's essential that you are validating their IP, and not the proxies IP.
What do you mean im getting their real ip from behind that proxy? the users ip?
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
What do you mean im getting their real ip from behind that proxy? the users ip?
Make a file called "ip.php" or something, and put the following:
PHP:
<?php

echo $_SERVER['REMOTE_ADDR'];
Do you see your IP? or do you see your (HTTP) proxies IP?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Your best way to counter this is to simply have your voting only on the client page and use this.



With a novote GET check (So when they redirect from FindRetros the script will not be called if the parameter is set).

This way everyone will be able to connect without any issues.
 

Tash

Hi.
May 6, 2012
173
27
What kind of HTTP proxy is it?
Reverse proxy


Your best way to counter this is to simply have your voting only on the client page and use this.



With a novote GET check (So when they redirect from FindRetros the script will not be called if the parameter is set).

This way everyone will be able to connect without any issues.

Im currently using that , and i tried doing it on the client page , still doesnt work.
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Search for
PHP:
$_SERVER['HTTP_CF_CONNECTING_IP']
And replace all of them with
PHP:
$_SERVER['HTTP_X_REAL_IP']
in findretros.php
 

Tash

Hi.
May 6, 2012
173
27
Could you please create "ip.php" and add the following:
PHP:
<?php

echo $_SERVER['REMOTE_ADDR'] . '<br>';
echo $_SERVER['HTTP_X_REAL_IP'];

And then link me to it?


its not the real ip btw, its proxy ip
 

Users who are viewing this thread

Top