Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How To Block Proxy Servers On My Site Code For .htaccess, code for .htaccess
Web Design Seo
post Oct 5 2010, 01:09 PM
Post #1


Web Design Seo
****

Group: Root Admin
Posts: 4,165
Joined: 29-April 09
From: Sofia
Member No.: 1



On internet are many Bad people and bad bots that only post spam over comments and load your site.

How to block this type of bots and users thst use proxy servers?

One way is by .htaccess.

.htaccess code:


Код
# Block Proxy Servers
RewriteCond %{HTTP:VIA}     !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR}    !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED-FOR}    !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR}      !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]
RewriteCond %{HTTP:FORWARDED}           !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$
RewriteRule ^(.*)$ - [F]


Related searches:
htaccess Blocking php proxy - sample code.
deny proxy users htaccess
block proxy htaccess


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Htaccess Code To Speed Up Joomla
example code for Htaccess for Joomla, Wordpress and other CMS
7 Web Design Seo 22,764 17th November 2018 - 11:47 AM
Last post by: Web Design Seo
No New Posts How To Block Bad Bots On My Website .htaccess Code
code for .htaccess
2 Web Design Seo 8,017 17th October 2018 - 06:55 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Check Aged Domain Names Quality
old domain for sale - check quality first!
3 Web Design Seo 19,994 10th September 2018 - 06:22 AM
Last post by: Web Design Seo
No New Posts How To Boost Onpage Seo Of My Website
fast and power way to find the right keywords and to rank it quickly
0 Web Design Seo 11,203 16th January 2017 - 01:47 PM
Last post by: Web Design Seo
No New Posts How To Limit Number Of Items In Rss Feed With Aggregator
yahoo pipes guide and example code
1 Web Design Seo 20,415 7th September 2015 - 10:48 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Use Majestic For Free
Majestic.com for free, how-to guide
0 Web Design Seo 6,526 11th March 2015 - 02:59 PM
Last post by: Web Design Seo
No New Posts Pinned: How To Protect From Negative Seo
How to fight with Negative SEO campaigns, Short Guide
1 Web Design Seo 9,725 26th September 2014 - 01:31 PM
Last post by: Web Design Seo
No New Posts Pinned: How To Link After Google Penguin
post penguin link building
2 Web Design Seo 17,487 25th July 2014 - 10:21 AM
Last post by: Web Design Seo
No New Posts How Do I Know If Mbstring Installed?
Requirements of Post by Email
2 April Pastis 5,291 5th May 2014 - 03:30 PM
Last post by: April Pastis
No new Pinned: How To Install Ioncube Loader
If Ioncube Loader Is Not Installed In Your Hosting
5 Web Design Seo 15,304 24th April 2014 - 10:47 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 18th November 2019 - 06:56 PM
Clicky Web Analytics