Proxy Blocker

Started by simmaster, December 21, 2009, 04:47:52 AM

Previous topic - Next topic

oOo--STAR--oOo

Hi i have just installed this mod.. looks great.. I didnt get locked out..
But i would like a simple request..
playstation 3 users use my forums because its based off a playstation 3.

I dont have my playstation 3 to hand right now.. but will they beable to access the site using there playstation 3's browser?

I have alot of people who come in through proxy's and this is an amazing option to keep them out.

Im gonna run it for a few days see how many emails i get saying that there is something wrong.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

shadowcrews

i have uninstall this mod but now it appear this at the bottom of the page

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 try to reinstall and uninstall but still the same, please let me know how do i fix this

sattninja

i installed the mod but with no errors but it takes my forum down with this error

Fatal error: Call to undefined function IsTorExitPoint() in /home/appfuzio/public_html/index.php  on line 225
Running Rc4

sattninja

Running Rc4

Sabre™

@ shadowcrews & sattninja
Check the edits in your index.php located in the root of your forum
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


sattninja

what edits can we check
Running Rc4

Sabre™

Check that these were installed correct.
Just those edit for the index.php
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


sattninja

everything checks and still getting same error

Fatal error: Call to undefined function IsTorExitPoint() in /home/appfuzio/public_html/index.php on line 226
Running Rc4

Sabre™

#128
Check the other files also then, namely the Register.php
Im guessing it's in that file, as I an get [HERE] without a problem.

EDIT:
Also make sure your edits toward the bottom of your templates are before  ?>
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


oOo--STAR--oOo

This mod locks alot of people out of the forum.. I trialed it for a week and legit members was getting locked out the forums..

I recomend that only small forums use this as it can lock members out who are legit.

Thanks for the mod didnt work for me as I wanted it to.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Arantor

That's the thing, most users are using a proxy whether they realise it or not.
Holder of controversial views, all of which my own.


~DS~

I find this mod useless.  >:(
I have a SMF user here who has this installed on their site as well as me being a member there. I had issues trying to register, login because of this damn thing.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

Quote from: Arantor on March 07, 2010, 08:42:20 AM
That's the thing, most users are using a proxy whether they realise it or not.
Holder of controversial views, all of which my own.


~DS~

Quote from: Arantor on March 07, 2010, 08:48:11 AM
Quote from: Arantor on March 07, 2010, 08:42:20 AM
That's the thing, most users are using a proxy whether they realise it or not.
Yes I know that Arantor. I don't see this being used as they won't realise they are being locked out thur you are gonna lose members that way and/or you won't be gaining members with this thing installed.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

And therein lies the underlying problem.

You can't actually block proxies reliably. I've been saying this for months.
Holder of controversial views, all of which my own.


~DS~

Quote from: Arantor on March 07, 2010, 08:52:30 AM
And therein lies the underlying problem.

You can't actually block proxies reliably. I've been saying this for months.
Oh really? I didn't know you could bypass. So there's a walkaround after all?  ;D Same for SimpleSEF as it does not increase or improve SEO either.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

It's not so much a case of bypassing it, it's just that so many users use proxies without realising that you'll have so many false positives, and a surprisingly scary number of misses that it's just not worth the effort in the long run.
Holder of controversial views, all of which my own.


George S.

I'm using SMF1.1.11

Is it possible to add an image at the error page.
I've searched for a solution but I can't find out how to place an image.

I think it has something to do with the following code

// What if we're on a proxy?
   $hostaddr = gethostbyaddr($_SERVER['REMOTE_ADDR']);
   if(
      !empty($modSettings['proxyblock_index'])
      && empty($kill_proxyblocker)
      && (!$hostaddr
      || $hostaddr == "."
      || empty($_SERVER['HTTP_ACCEPT_ENCODING'])
      || !empty($_SERVER['HTTP_X_FORWARDED_FOR'])
      || !empty($_SERVER['HTTP_X_FORWARDED'])
      || !empty($_SERVER['HTTP_FORWARDED_FOR'])
      || !empty($_SERVER['HTTP_VIA'])
      || in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))
      || empty($_SERVER['HTTP_CONNECTION'])
      || stripos($hostaddr, "tor-exit")
      || IsTorExitPoint())
   )
      fatal_lang_error('on_proxy');

- Can someone tell me if it's possible.?
- Can someone tell how to do it?

Arantor

You could in theory modify the on_proxy language string to contain HTML for an image by adding <img src="img address"> into $txt['on_proxy']. Not sure off hand where that is though, probably Themes/default/Modifications.english.php

For example:
$txt['on_proxy'] = '<img src="http://myforum.com/accessdenied.png"> You cannot access this site through a proxy.';
Holder of controversial views, all of which my own.


George S.

Quote from: Arantor on March 11, 2010, 08:36:36 AM
You could in theory modify the on_proxy language string to contain HTML for an image by adding <img src="img address"> into $txt['on_proxy']. Not sure off hand where that is though, probably Themes/default/Modifications.english.php

For example:
$txt['on_proxy'] = '<img src="http://myforum.com/accessdenied.png"> You cannot access this site through a proxy.';
Thanks, but I've tried that and it is not working.

Advertisement: