We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Prevent User Connecting Via Proxies | Forum

Topic location: Forum home » Support » General Questions
Michael
Michael Dec 29 '12
I thought I would share this incase anyone is interested in using it themselves.

This blocks 99% of all proxie sites as it checks for certain information from the user, you add this to your htaccess file

# block proxy servers from site access
# http://perishablepress.com/...ervers-via-htaccess/

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]

Purusothaman Ramanujam
Can you please explain me, what is the purpose to prevent access via proxies? I do not have much idea on this.
Abbey
Abbey Mar 23 '15
can you explain more how to add this? At the beginning or the end?
Elly Dzilah
Elly Dzilah Mar 24 '15
Proxies hide a visitors real informations, replacing them with the proxy servers'. This makes it difficult to track and trace their informations. The  perfect reason for preventing proxies is to make your website invulnerable.
Adam
Adam Dec 31 '22
This is a solution that might work. Thanks for your post. I'm also currently looking into proxy solutions that can increase the sustainability of the project and protect personal data. Many users use proxy services from the list https://proxybros.com/location/france-proxy/ study their work better to ban them correctly
RichardGravener
RichardGravener Dec 31 '22
This is a solution that might work. Thanks for your post. I'm also currently looking into proxy solutions that can increase the sustainability of the project and protect personal data. Many users use proxy services from the list concrete sealing washington dc study their work better to ban them correctly