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,332
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 Posts Pinned: Htaccess Rules For Google Pagespeed Insights In 2021
The best rules for Htaccess for Apache servers
1 Web Design Seo 300,471 18th March 2021 - 02:07 PM
Last post by: Web Design Seo
No new Pinned: Htaccess Code To Speed Up Joomla
example code for Htaccess for Joomla, Wordpress and other CMS
8 Web Design Seo 61,732 17th February 2021 - 11:43 AM
Last post by: Web Design Seo
No New Posts Htaccess Code To Switch To Other Php Version
Htaccess Code To Switch To php 5.6
1 Web Design Seo 39,339 17th August 2020 - 08:58 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Optimize Speed And Server Load For Joomla Website?
How to reduce server load for Joomla site
0 Web Design Seo 66,187 15th January 2020 - 09:17 AM
Last post by: Web Design Seo
No New Posts How To Block Bad Bots On My Website .htaccess Code
code for .htaccess
3 Web Design Seo 79,798 15th January 2020 - 07:46 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 99,008 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 77,073 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 290,365 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 49,177 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 64,966 26th September 2014 - 01:31 PM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 1st June 2026 - 08:20 PM