Preventing posts from proxies

Open to discuss whatever you would like.

Preventing posts from proxies

Postby wrigs » Mon May 31, 2010 5:55 pm

I've started to look at htaccess (see my qn in APF forum) for my travel book store and came across this from http://www.askapache.com/htaccess/htacc ... e-examples

Denies any POST Request using a Proxy Server. Can still access site, but not comment. See Perishable Press [403]

Code: Select all
RewriteCond %{REQUEST_METHOD} =POST
RewriteCond %{HTTP:VIA}%{HTTP:FORWARDED}%{HTTP:USERAGENT_VIA}%{HTTP:X_FORWARDED_FOR}%{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}%{HTTP:HTTP_PC_REMOTE_ADDR}%{HTTP:HTTP_CLIENT_IP} !^$
RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
RewriteRule .* - [F,NS,L]


Would this help stop the spammers? but would it also stop posts from people behind legit proxies e.g. at work?

Anyway just a thought

Andy
wrigs
 
Posts: 12
Joined: Tue May 18, 2010 10:08 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron