I love this plugin, and I made it even a bit more fun for people who think that proxing through other servers is smart:
Edit this code:
Code:
<phpcode><![CDATA[if ($vbulletin->options['no_proxy_enable'])
{
if( @fsockopen( $_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1 ) || @fsockopen( $_SERVER['REMOTE_ADDR'], 443, $errstr, $errno, 1 ))
{
standard_error(fetch_error('no_proxy_message'));
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title><![CDATA[No Proxy Allowed.]]></title>
<hookname>global_start</hookname>
<phpcode><![CDATA[if ($vbulletin->options['no_proxy_allowed_enable'])
{
if( @fsockopen( $_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1 ) || @fsockopen( $_SERVER['REMOTE_ADDR'], 443, $errstr, $errno, 1 ))
{
standard_error(fetch_error('no_proxy_allowed_message'));
}
}]]></phpcode>
And where it says:
Code:
{
standard_error(fetch_error('no_proxy_message'));
}
and
Code:
{
standard_error(fetch_error('no_proxy_allowed_message'));
}
Replace it with this to forward to any site, page or w/e you want:
Code:
header( 'Location: http://www.yourwebsitehere.com' ) ;
Hope the author doesn't mind me posting this, had some fun with adding this to our use of the plugin. Which I will add is a GREAT blocking for any and all proxy servers, thank you very much for making this!