News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

HELP !!! SCRIPT CODE SHOWING AT BOTTOM OF MY SITE NOW

Started by XHIBIT911, April 24, 2012, 09:33:21 AM

Previous topic - Next topic

XHIBIT911

Yesterday due to a constant spam troll, that I've banned and banned who keeps coming back using proxy's... I was forced to install Proxy Blocker v1.1.4 just to keep him off my website.
I didn't notice it until early this morning but now at the bottom of my website is the following code.

function IsTorExitPoint() { return ( gethostbyname(ReverseIPOctets($_SERVER['REMOTE_ADDR']) . "." . $_SERVER['SERVER_PORT'] . "." . ReverseIPOctets($_SERVER['SERVER_ADDR']) . ".ip-port.exitlist.torproject.org") == "127.0.0.2" ); } function ReverseIPOctets($inputip) { $ipoc = explode(".", $inputip); return $ipoc[3].".".$ipoc[2].".".$ipoc[1].".".$ipoc[0]; }

I assume this came from the mod, because I also loaded the new smf quiz mod but this URL thats in the code above suggests its from the proxy blocker. torproject.org.

So my question is how can I make this code NOT show at the bottom of my website and keep this troll off my website at the same time ?

I'm using SMF 2.0.2 with a  PortaMx 1.45

mashby

Looks to me like the edits to index.php weren't done quite properly. Have a look in that file and see if the code appearing at the bottom of your site is after ?>
Always be a little kinder than necessary.
- James M. Barrie

XHIBIT911


XHIBIT911

Yes..in fact it is...

// end of get2by2host_copyright ?>
function IsTorExitPoint()
{
return (
gethostbyname(ReverseIPOctets($_SERVER['REMOTE_ADDR']) . "." .
$_SERVER['SERVER_PORT'] . "." .
ReverseIPOctets($_SERVER['SERVER_ADDR']) .
".ip-port.exitlist.torproject.org")
== "127.0.0.2"
);
}
function ReverseIPOctets($inputip)
{
$ipoc = explode(".", $inputip);
return $ipoc[3].".".$ipoc[2].".".$ipoc[1].".".$ipoc[0];
}

mashby

Okie dokie, just move the ?> to the last line and see if that helps (I imagine it will). :)
Always be a little kinder than necessary.
- James M. Barrie

NanoSector

Like this:

// end of get2by2host_copyright
function IsTorExitPoint()
{
return (
gethostbyname(ReverseIPOctets($_SERVER['REMOTE_ADDR']) . "." .
$_SERVER['SERVER_PORT'] . "." .
ReverseIPOctets($_SERVER['SERVER_ADDR']) .
".ip-port.exitlist.torproject.org")
== "127.0.0.2"
);
}
function ReverseIPOctets($inputip)
{
$ipoc = explode(".", $inputip);
return $ipoc[3].".".$ipoc[2].".".$ipoc[1].".".$ipoc[0];
}
?>
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

XHIBIT911

Worked like a charm...you guys need to wear HazMat suits...'cause you're the BOMB !

Thanks a ton...hey will the Proxy Block still work ?
This troll that keeps coming back makes me want to rip the eyebrows off of his face and this is basically all I have left to defend against him coming back after bans.

I'll mark this as SOLVED

Advertisement: