| | #1 |
| UltraNote.Org War Room Member Join Date: 2011 Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
|
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 %{HTTP ROXY_CONNECTION} !^$ [OR]RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule ^(.*)$ - [F] |
| | |
| |
| | #2 |
| Warrior Member Join Date: 2011
Posts: 10
Thanks: 1
Thanked 1 Time in 1 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. |
| |
| | #3 |
| UltraNote.Org War Room Member Join Date: 2011 Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
|
Thank you for your idea Daniel. I am trying to find a php script to do that.
|
| | |
| |
| | #4 |
| <?php echo("Hello"); ?> Join Date: 2011 Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
|
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. |
| |
| The Following User Says Thank You to andrejvasso For This Useful Post: |
| | #5 |
| UltraNote.Org War Room Member Join Date: 2011 Location: ROM
Posts: 920
Thanks: 369
Thanked 349 Times in 194 Posts
|
Thank you guys, I am trying to block the proxy sites manually now. It takes a lot of work, but it works.
|
| | |
| |
| | #6 | |
| HyperActive Warrior War Room Member Join Date: 2011
Posts: 248
Thanks: 36
Thanked 20 Times in 20 Posts
|
You could have a look at using a Custom .htaccess file that blocks certain ranges. | |
| | ||
| |
| | #7 | |
| HyperActive Warrior War Room Member Join Date: 2011
Posts: 248
Thanks: 36
Thanked 20 Times in 20 Posts
|
| |
| | ||
| |
|
| Bookmarks |
| Tags |
| block, proxies |
| |