Jump to content
  • 0
GMKoji

Proxy is not allowed (VoteForPoints Addon by Jaypee)

Question

14 answers to this question

Recommended Posts

  • 0
On 18/02/2013 at 04:15, Brian said:

Esta é a parte do código que causa a mensagem "Proxy is not allowed": 

 

http://rathena.org/board/files/file/2344-fluxcp-addon-vote-for-points/

../modules/voteforpoints/vote.php


 
  1. // Impedir um pouco o uso de servidores proxy
  2. $ xforward = $ _SERVER [ "HTTP_X_FORWARDED_FOR" ];
  3. if (! empty ( $ xforward )) {
  4. $ error = Flux :: message ( 'PROXY_NOT_ALLOWED' );
  5. }

    

I had the same problem and my solution was this one, I just changed it:

if (!empty($xforward)) {

per:

if (!empty($myHHvarRND)) {

 

//Somewhat Prevent of using Proxy Servers
    $xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];
    if (!empty($myHHvarRND)) {
        $error = Flux::message('PROXY_NOT_ALLOWED');
    }

Link to comment
Share on other sites

Hi GMKoji,

From my experience, this usually happens when the web hosting is using a proxy system for their Apache webserver. They proxy off the traffic to a secondary web server such as nGinx to help alleviate the heavy loads. So I would recommend asking your web hosting about this first to see if they are doing this.

Link to comment
Share on other sites

Hi Sir Edward. Oh I see, But you are the current host of my server  lol :)

Hi GMKoji,

Then kindly read my response to you and do what I've stated; to contact your hosting provider. If we host your service, then simply submit a support ticket and we'll look into it.

Link to comment
Share on other sites

This is the part of code causing the "Proxy is not allowed" message: 

 

http://rathena.org/board/files/file/2344-fluxcp-addon-vote-for-points/

../modules/voteforpoints/vote.php

	//Somewhat Prevent of using Proxy Servers
	$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];
	if (!empty($xforward)) {
		$error = Flux::message('PROXY_NOT_ALLOWED');
	}
Link to comment
Share on other sites

It's fun to see just one check to detect proxy base on a facultative http header that the proxy can omit to send :)

So yeah you can definitively remove this check, I don't think a lot of proxy send it anymore since a long time.

  • Upvote 1
Link to comment
Share on other sites

If i vote the result is Proxy is not Allowed

Plss Help

same problem
any vote4points link
5days search for 

Proxy is not allowed
 



no result hahaha:D

Link to comment
Share on other sites

^ Could you make a good one without bugs then? <3

 

Oh wait, I bet you can't.

 

(sorry for the off topic post :> and the terrible engrish)

Edited by kenshn111
  • Upvote 1
Link to comment
Share on other sites

This is the part of code causing the "Proxy is not allowed" message:

http://rathena.org/board/files/file/2344-fluxcp-addon-vote-for-points/

../modules/voteforpoints/vote.php

//Somewhat Prevent of using Proxy Servers
	$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];
	if (!empty($xforward)) {
		$error = Flux::message('PROXY_NOT_ALLOWED');
	}

Sir brian if i delete these i should be able to vote again? I am currently having the proxy cannot vote problem. Thank you in advance.

bump

It's fun to see just one check to detect proxy base on a facultative http header that the proxy can omit to send :) So yeah you can definitively remove this check, I don't think a lot of proxy send it anymore since a long time.

Hello there, how can you correctly remove it Sir? thanks!

Link to comment
Share on other sites

Hi Fresh prince,

 

I would recommend that you just change this line here;

$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];

 

To the following...

//$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];
Link to comment
Share on other sites

 

Hi Fresh prince,

 

I would recommend that you just change this line here;

$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];

To the following...

//$xforward= $_SERVER["HTTP_X_FORWARDED_FOR"];

 

What will this script result to, sir please? Will this disable proxy detection because nginx is enabled?

Lol the solution posted here didnt help at all. Please help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.