Proxy Blocker

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

Previous topic - Next topic

simmaster

Anyway, why uninstall the mod when there are a bunch of other undefined index errors? The ones that really need to be focused on are the critical errors. Still, on active forums, it's error log overkill. :P

Arantor

Don't forget that error log is DB stored, so every error being logged is another query that could be saved for real use...
Holder of controversial views, all of which my own.


simmaster

Which is why I'm looking into a way to check if the SERVER variables are empty without causing the server to query itself to death.

Arantor

You mean like empty($_SERVER['parameter']) ?
Holder of controversial views, all of which my own.


simmaster

#44
Already did that in 1.1.2 with the index.php edit. Being the idiot I am, I didn't adapt it to Register.php. Odd part is that I see the errors, and they're coming from index.php ._.

Mr. Pirate

so the mod installed perfectly i fixed the index.php thing were the code was going after the "?>", and i moved it before.



but when i go to hidemyass.com or any other proxy blocker it doesnt block it, on firefox or internet explorer.



why is this happening??

simmaster

#46
Did you switch the settings on? I added a configuration section to the description.

DarkValentine

I seem to get the following error when I use this plugin.


Undefined index: proxyblock_index
File: /home/generati/public_html/forum/index.php
Line: 180


When I check this line, this is what I see on that exact line



It seems that while this error is in place, switching the configuration on for this plugin does not work. As it will not block any proxies. My only guess, is because of the error on line 180

Arantor

Instead of just $modSettings['proxyblock_index'], use
!empty($modSettings['proxyblock_index'])
Holder of controversial views, all of which my own.


DarkValentine

Seems like that did the trick, because the error appears on Register.php now.

So, I applied what you said for that too, the errors went away in both areas fully :)

Thanks. I'll post if I find any other problems.

dzinerfusion

Wow what a great mod! Amazing how you can make ti detect proxies!  ::) ;D

Arantor

It doesn't detect every single proxy, just a decent percentage of them.
Holder of controversial views, all of which my own.


simmaster

Quote from: Arantor on December 25, 2009, 07:47:13 PM
It doesn't detect every single proxy, just a decent percentage of them.

Just about most of the web-based ones with common cloaking techniques that leave dead giveaways like empty hostnames ::)

And 1.1.3 (I seriously need a new versioning method, because this is moving too fast) should stop Proxy Blocker from flooding the error log.

Arantor

Depends mostly how intelligent the proxy is, really. This is better than most other attempts I've seen.
Holder of controversial views, all of which my own.


DarkLite

Impressive work! Quick question: did you fix Firefox-related false positives? Just a friend of mine got "caught" with the earliest version :/

simmaster

#55
Quote from: Arantor on December 26, 2009, 07:10:49 AM
Depends mostly how intelligent the proxy is, really. This is better than most other attempts I've seen.

Most of the "intelligent" and "anonymous" proxies leave dead giveaways that this mod captures. Maybe that's because they're all using software like Glype (WinkProxy: Blocked), CGIProxy (Proxify) and PHProxy (HideMyAss).

Quote from: DarkLite on December 26, 2009, 10:00:17 AM
Impressive work! Quick question: did you fix Firefox-related false positives? Just a friend of mine got "caught" with the earliest version :/

The Firefox false positive should be solved. I've tested the mod on Firefox 3.5.5 and have not received a false positive.

iNumberS

#56
just installed the mod and it blocked me out of my forums even though i'm not using proxy. How can i remove this because i'm totally blocked from my forums now.. I NEED HELP

simmaster

Quote from: iNumberS on December 26, 2009, 08:19:19 PM
just installed the mod and it blocked me out of my forums even though i'm not using proxy. How can i remove this because i'm totally blocked from my forums now.. I NEED HELP

Manually remove the edits to the index.php file and uninstall the mod. I'll work on a kill switch in the Settings.php file.

Arantor

If you do add a kill-switch, please ensure it is added via the correct functions, concerning updateDBSettings and updateSettingsFile.
Holder of controversial views, all of which my own.


simmaster

Quote from: Arantor on December 27, 2009, 08:34:15 AM
If you do add a kill-switch, please ensure it is added via the correct functions, concerning updateDBSettings and updateSettingsFile.

Well yes, but wouldn't it be odd to have the killswitch in the Admin panel when you're blocked from it? :P

Advertisement: