Iridium2 wrote:Hi,
I have successfully installed this mod. But I am confused about three things.
1) it says:
Block Open Proxy Registrants
This MOD can only be enabled once a proxy has been successfully tested via the ACP.
Does that mean I can only 'activate' this mod once I have manually found an 'open proxy'?
Or does it mean I have to at least use the CHECK IP option once before activating it?
The latter. The IP address you test this MOD on can be an open proxy but it doesn't have to be. The reason we conduct the test is just to see that the test actually finishes, without regard for the result. The reason being that the gimmicks this MOD uses to quickly scan for proxies don't work on all servers.
2)
User Agent String
Determines how HTTP requests ought to identify themselves when attempting to connect to a proxy.
What does this do? Is the entered information 'phpBB Open Proxy Detector' relevant?
I do not see the meaning let alone the use for this input section.
Some servers ignore HTTP requests with blank User-Agent strings, so we have to fill it with something. I could hard-code "phpBB Open Proxy Detector", but what happened if that, as a User-Agent string, got added to a blacklist, or something? Letting someone change it bypasses this problem.
3)
When pressing the debug option is says in the second section:
Sample HTTP Request 2
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /mounted-storage/home30c/sub002/sc28943-KTRK/www/proxy/connect.php on line 37
GET http://www.mysite.com/proxy/serve.php HTTP/1.0
Host: http://www.mysite.com
User-Agent: phpBB Open Proxy Detector
Connection: close
Clearly an error of some sort, but is this needed?
I haven't a clue as to why you're getting that.
From connect.php:
Code: Select all
$valid_ips = gethostbynamel($server_name);
if ( !in_array($HTTP_SERVER_VARS['REMOTE_ADDR'],$valid_ips) && $HTTP_SERVER_VARS['REMOTE_ADDR'] != '127.0.0.1' )
{
$valid_ips = implode(', ',$valid_ips).' and 127.0.0.1';
// the following isn't translateable due to the fact that it shouldn't ever actually be called. if it is, it's chief purpose is to help me debug.
die('IP mismatch (requesting IP is '.$HTTP_SERVER_VARS['REMOTE_ADDR'].", valid server IPs are $valid_ips)");
}
$type = 0;
if ( $HTTP_GET_VARS['address'] != '127.0.0.1' && !in_array($HTTP_GET_VARS['address'],$valid_ips) && ($fsock = @fsockopen('tcp://'.$HTTP_GET_VARS['address'],$HTTP_GET_VARS['port'],$errno,$errstr,$board_config['proxy_delay'])) )
If in_array's second parameter wasn't an array, then you should either be getting that error twice or you should be getting that error once and then an "IP mismatch" error. But you're not getting either.
So the way I see it, you have two options. Give me FTP access so I can diagnose / debug the problem, or install the MOD that I consider to the be the successor to this MOD -
Proxy Revealer.