Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th May 2011, 03:32 PM   #1
UltraNote.Org
War Room Member
 
Mahmoud Selman's Avatar
 
Join Date: 2011
Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
Default
Block Proxies
Share on: 
fb share twitter share gplus share more share

Hello Warriors,
I am looking for a way to block proxy servers from browsing my website, I have tried adding this code to my .htaccess but it wont block open proxies. I am using apache2 with Joomla 1.5 all help are much appreciated.

RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]

Mahmoud Selman is offline  
Unread 14th May 2011, 07:50 PM   #2
Warrior Member
 
Join Date: 2011
Posts: 10
Thanks: 1
Thanked 1 Time in 1 Post
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

Well. I don't think my ideas are good, but I was trying

1) You can use a script to determine IP address and try to connect to [IP]:80,88,8080,8888,3128 if it connects - then it's a proxy

2) You can also download fresh proxy list every day and scan it when user gets to your page. But that's a big pressure on your DB

3) You can use SSL and this will not work with some types of open proxies.
danielharris is offline  
Unread 14th May 2011, 08:31 PM   #3
UltraNote.Org
War Room Member
 
Mahmoud Selman's Avatar
 
Join Date: 2011
Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

Thank you for your idea Daniel. I am trying to find a php script to do that.

Mahmoud Selman is offline  
Unread 15th May 2011, 03:39 AM   #4
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

I have had a similar problem once when a client asked me to "secure" their website from people using proxies. I have to give you the same answer as I did back than: there is no way to block all proxies. thats simply not possible.

You can, however, block a majority of public, open, transparent or web proxies by using some proxy dectection script.

I personally have worked with the XIP class from phpclasses.org (XIP Class (sip) - PHP Classes), but, as I said, it wont really block all proxies and there is no way, I know of, that would allow you to do so.
andrejvasso is offline  
The Following User Says Thank You to andrejvasso For This Useful Post:
Unread 16th May 2011, 10:37 AM   #5
UltraNote.Org
War Room Member
 
Mahmoud Selman's Avatar
 
Join Date: 2011
Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

Thank you guys, I am trying to block the proxy sites manually now. It takes a lot of work, but it works.

Mahmoud Selman is offline  
Unread 16th May 2011, 10:58 AM   #6
HyperActive Warrior
War Room Member
 
Join Date: 2011
Posts: 248
Thanks: 36
Thanked 20 Times in 20 Posts
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

Originally Posted by danielharris View Post

Well. I don't think my ideas are good, but I was trying

1) You can use a script to determine IP address and try to connect to [IP]:80,88,8080,8888,3128 if it connects - then it's a proxy

2) You can also download fresh proxy list every day and scan it when user gets to your page. But that's a big pressure on your DB

3) You can use SSL and this will not work with some types of open proxies.
Definitely not Port 80 that's just normal web browsing. Also some Proxys now can terminate the SSL connection.

You could have a look at using a Custom .htaccess file that blocks certain ranges.

Vaoser Link Ninja Software
DHV Delivery Systems FAILING at online dating???
TG12 is offline  
Unread 16th May 2011, 10:59 AM   #7
HyperActive Warrior
War Room Member
 
Join Date: 2011
Posts: 248
Thanks: 36
Thanked 20 Times in 20 Posts
Default
Re: Block Proxies
Share on: 
fb share twitter share gplus share more share

Originally Posted by andrejvasso View Post

I have had a similar problem once when a client asked me to "secure" their website from people using proxies. I have to give you the same answer as I did back than: there is no way to block all proxies. thats simply not possible.

You can, however, block a majority of public, open, transparent or web proxies by using some proxy dectection script.

I personally have worked with the XIP class from phpclasses.org (XIP Class (sip) - PHP Classes), but, as I said, it wont really block all proxies and there is no way, I know of, that would allow you to do so.
This makes sense.

Vaoser Link Ninja Software
DHV Delivery Systems FAILING at online dating???
TG12 is offline  
Closed Thread


Bookmarks

Tags
block, proxies


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:18 AM.