News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[Depreciated]

Started by Depreciated, November 10, 2010, 09:56:00 PM

Previous topic - Next topic

Depreciated

Link to the mod


Simple .htaccess Proxy Blocker Mod v1.2
~{By PaulpBaker}~

Link to Mod | My Mods | Support Topic

Compatibility
Version independent so will work on ALL versions of SMF!

Description
Very simple 'mod' to add some options to block proxy servers easily via your .htaccess file.

(Please read the below warnings in the 'Notes' section)

This mod is fully compatible with my other .htaccess mods: Simple .htaccess Cache Mod and Simple .htaccess Bot Blocker Mod

Have some suggestions to make this mod better? Please let me know in the support topic.

Notes
Requires: mod_rewrite to be installed and enabled for apache.

If you get any errors after installing this you didn't have mod_rewrite installed/enabled but you can simply uninstall this 'mod' by removing the following code from your .htaccess file in your web root folder

#Simple .htaccess Proxy Blocker Mod
[code here]
#Simple .htaccess Proxy Blocker Mod


Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Install the package on the SMF Default 'Curve' Theme ONLY. Other themes will need manual edits.

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
v1.2 - 1st September 2016: Updated to make compatible with SMF 2.0.11
v1.1 - 21st October 2010: Added uninstall option
v1.0 - 19th August 2010: Initial Version

playdiune

is there any control of this mod on the admin painel ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

steve51184


playdiune

i just installed this mod on my forum, www.new-digital.net and tried to access with this proxy (h**p://accessanywebsite.com/), and i was abble to access !!!

Shouldnt this MOD block this kind of access ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

steve51184

it depends on the type of proxy also do you have mod_rewrite installed?

playdiune

Quote from: steve51184 on January 14, 2011, 01:44:26 PM
it depends on the type of proxy also do you have mod_rewrite installed?

i think so. how can i be shure i have mod rewritte installed ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

steve51184

Quote from: playdiune on January 14, 2011, 01:46:15 PM
Quote from: steve51184 on January 14, 2011, 01:44:26 PM
it depends on the type of proxy also do you have mod_rewrite installed?

i think so. how can i be shure i have mod rewritte installed ?

check apache

playdiune

#7
i have pretty urls installed and working and i have this on my htaccess:

#Simple .htaccess Proxy Blocker Mod

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{HTTP:VIA}                 !^$ [OR]

RewriteCond %{HTTP:FORWARDED}           !^$ [OR]

RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]

RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR]

RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]

RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]

RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]

RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$

RewriteRule ^(.*)$ - [F]

</IfModule>

#Simple .htaccess Proxy Blocker Mod


doesnt it means the mod_rewritte is installed ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

steve51184

Quote from: playdiune on January 14, 2011, 01:56:12 PM
i have pretty urls installed and working and i have this on my htaccess:

#Simple .htaccess Proxy Blocker Mod

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{HTTP:VIA}                 !^$ [OR]

RewriteCond %{HTTP:FORWARDED}           !^$ [OR]

RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]

RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR]

RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]

RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]

RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]

RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$

RewriteRule ^(.*)$ - [F]

</IfModule>

#Simple .htaccess Proxy Blocker Mod


doesnt it means the mod_rewritte is installed ?

you'll have to ask your host if you have mod_rewrite installed or add this to a new file and name it info.php and run it and look for mod_rewrite

<?php phpinfo(); ?>

Ronald_1938

I installed this Mod on a test forum 2.0 RC5. All I get is an error whenever I click anything. The forum will no longer come up..

Just where do I find this file, looked all over and I don't see any..

Need some help in getting this Mod out of the forum, so I can have my test board back..

Thanks Oldcrow

Depreciated

Quote from: Oldcrow on April 25, 2011, 06:14:37 PM
I installed this Mod on a test forum 2.0 RC5. All I get is an error whenever I click anything. The forum will no longer come up..

Just where do I find this file, looked all over and I don't see any..

Need some help in getting this Mod out of the forum, so I can have my test board back..

Thanks Oldcrow

read the info on the first post of this topic on the recruitments and how to manually uninstall it

Ronald_1938

Quote from: PaulpBaker on April 25, 2011, 06:29:47 PM
Quote from: Oldcrow on April 25, 2011, 06:14:37 PM
I installed this Mod on a test forum 2.0 RC5. All I get is an error whenever I click anything. The forum will no longer come up..

Just where do I find this file, looked all over and I don't see any..

Need some help in getting this Mod out of the forum, so I can have my test board back..

Thanks Oldcrow

read the info on the first post of this topic on the recruitments and how to manually uninstall it


Notes
Requires: mod_rewrite to be installed and enabled for apache. (I neglected to install this.)

If you get any errors after installing this you didn't have mod_rewrite installed/enabled but you can simply uninstall this 'mod' by removing the following code from your .htaccess file in your web root folder

The above file .htaccess, I can not locate also.

Quote[Select]
#Simple .htaccess Proxy Blocker Mod
[code here]
#Simple .htaccess Proxy Blocker Mod

The above I can not locate.

I really have no idea as to what I'm looking for. I browse the files in the Root and do not see anything close to this.
Any idea as to where I'd locate this file.

Thanks
Oldcrow

Depreciated

what error are you getting and is mod_rewrite installed and enabled now?

Ronald_1938

Quote from: PaulpBaker on April 25, 2011, 08:50:52 PM
what error are you getting and is mod_rewrite installed and enabled now?

mod_rewrite is not installed.

error is:
QuoteForbidden

You don't have permission to access /rmbtest/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

anakmacan

It doesnt work, i still can access my site from kproxy.com

Depreciated

v1.2 - 1st September 2016: Updated to make compatible with SMF 2.0.11

Advertisement: