| Home | Articles | Archive | Links |


- Misc
How To Use Your htaccess File...
Determine What You Are Willing...
Shopping For Discount Merchandise
Web Site Traffic Secrets Exposed
The Next Big It Crash Is Coming Soon...
6 Serious Article Writing...
An Internet Marketing Company Can...
Things To Consider While Selecting...
Pay per click Marketing Strategy Can...
Fantasy Sports And Golf Escapades
What Every Freelancer Should Know...
Moving Your WordPress Blog
HTML Character Entities Problems For...
Understanding RSS Patents And Meta...
Create A htaccess File Without...
Can You Really Get Rich Quick...
How To Shop For A Digital Camera On...
How Do You Get Paid For Just...
Kick Off Your Holiday Marketing...
Outsource Me I m Programmable Im An...
Tips On How To Deal With Anonymous...
- Design
Domains Names and Web Design
- SEO
Affordable Search Engine...
Google Update A Test For Keyword...
How To Prevent Comment Spam With...
The Common Goal Of SEO And Paid...
Internet Search And SEO
- Earning Money
The Online Business Starting Point
Learn How To Make Money Online With...
Make Money Online With Your Own Paid...
Online Real Estate A Promising...
Online Earning You Are Just A Click...
The Truth About Making Extra Money...
- Hosting
Site5 Web Hosting Review
Important Hosting Plan Features
- Linking
How To Block Hotlinkers
How To Use Linknotes Plugins
- Auction
Is Merchandise Cheaper At Online...
Bad Spellings Of Words And Products...
How To Find A Great Bargain On Ebay
5 Tips To Protect Yourself From Ebay...

How To Use Your htaccess File To Keep Spammers Out



S


pammers have a knack for        would typically ignore the wishes 
developing “overrides” to       of ones’ robots.txtfile they can  
even the most secured           be banned using the .htaccess     
aspect of the system including        essentially by identifying the    
those that are not readily            bad bots.                         
recognized as potential targets.                                        
The .htaccess file can be used to     There is a useful code block that 
keep e-mail harvesters away. This     can be inserted into the          
is considered very effective          .htaccess file for blocking a lot 
since all of these harvesters get     of the known bad bots and site    
to identify themselves in some        rippers currently existing.       
way using the user agent files        Affected bots will receive a 403  
which gives .htaccess the             Forbidden Error when they attempt 
capability to block them.             to view a protected site. This    
                                      usually results to a significant  
Spams Countered by .htaccess          bandwidth saving and decrease in  
                                      server resource usage.            
Bad bots are the spiders that are                                       
considered to do a lot more harm      Bandwidth stealing or what is     
than good to a site such as an        commonly referred to as hot       
e-mail harvester. Site rippers        linking in the web community      
are offline browsing programs         refers to linking directly to     
that a surfer may unleash on a        non-HTML objects that are not on  
site to crawl and download every      one’s own server such as images   
one of its pages for offline          and CSS files. The victim’s       
viewing. Both cases would result      server is robbed of bandwidth and 
to a jacking up a site’s              money as the perpetrator enjoys   
bandwidth and resource usage even     showing content without having to 
up to the point of crashing the       pay for its delivery.             
site’s server. Since bad bots                                           



Hot linking to one’s own server       in this directory will be allowed 
can be disallowed with the use of     to be listed.                     
.htaccess. Those who will attempt                                       
to link an image or CSS file on a     The .htaccess file is also able   
protected site is either blocked      to reliably password protect      
or served a different content.        directories on websites. Other    
Being blocked would usually mean      options can be used but only      
a failed request in the form of a     .htaccess offers total security.  
broken image while an example of      Anyone wishing to get into the    
a different content would be an       directory must know the password  
image of an angry man, presumably     and no “back doors” are provided. 
to send a clear message to the        Password protection using         
violators. It is necessary that       .htaccess requires adding the     
the mod rewrite is enabled on         approximate links to the          
one’s server in order for this        .htaccess file in the directory   
aspect of .htaccess to work.          that is being sought to be        
                                      protected.                        
Disabling hot linking of certain                                        
file types on a site would need a     Password protecting a directory   
code to the .htaccess file which      is one of the functions of        
will be uploaded to the root          .htaccess that takes a little     
directory or a particular             more work than the others. This   
subdirectory to localize the          is because a file containing the  
effect to just one section of the     usernames and passwords which are 
site. A server is typically set       allowed to access the site has to 
to prevent directory listing. If      be created. It is placed anywhere 
this is not the case, the             within the website although it is 
required link should be stored        advisable to store it outside the 
into the .htaccess files of the       web root so that it cannot be     
image directory so that nothing       accessed from the web.            



                                      rests of the site’s content.      
Recommended Practices to Deter                                          
Spam                                  The use of rel = “no follow”      
                                      likewise denies the spammers of   
Avoiding the publication of           their desired page rank at the    
referrers is one way of               link-level and not just the       
discouraging spammers. It would       page-level using robots.txt. All  
be pointless to bother sending        link referrer section of the      
spoofed requests to blogs when        website linking to external       
this information is not known.        websites should carry this        
Unfortunately, most bloggers          attribute. This is done without   
believe that being able to click      exception so as to offer maximum  
on a link such as “sites              protection.                       
referring to me” and the like is                                        
a neat feature and have not           Referrer statistics gathered from 
evaluated its detrimental effect      beacon images loaded via          
on the whole blogosphere.             JavaScript document, write        
                                      statements that are more reliable 
If publishing referrers is a          than what the raw web server logs 
definite must, there should be a      will contain. There is an option  
built-in support for a referral       to totally disregard the          
spam blacklist and include the        referrer’s section of a site’s    
page in robots.txt. It                server logs. A cleaner list of    
specifically tells Googlebot and      referrers can be gathered from    
its relatives not to index the        the use of JavaScript and beacon  
referrer’s page. By doing this,       images from referrer stats.       
spammers are unable to get the                                          
page rank they seek. This would       The current Master Blacklist File 
only work however, when referrers     can be a powerful and efficient   
are published separately from the     weapon against spam. A log file   



analysis program that filters         given site has been identified as 
referrers against this list can       a referral spam host name,        
help root out spam. The Master        querying the blacklist again for  
Blacklist is a simple text file       any IPs with the same host name   
that can be downloaded from a         in the HTTP request should not be 
website or simply mirrored. It is     done as a matter of efficiency.   
far from perfect since a check on                                       
the file against the referrers        There are various forms of spam   
that got through shows that few       that has grown exponentially      
or none of them were listed.          along with the popularity of      
                                      blogs. This is probably due to    
The idea of combating comment         the very little restrictions      
spam by harnessing DNS-based          given against those that can post 
black hole lists could also be        a comment. This is easily         
used to ferret out other forms of     exploited by spammers who are     
spam such as referral spam. The       intent on getting their goods in  
proposal is really rather simple      front of people’s view. Spammers  
and suggests to query the IP          have automated tools on a         
against a blacklist for a request     constant look-out for blogs that  
with a referrer. If the IP is         can easily be spammed. Spamming   
blacklisted or has a high score       in all its forms, carry heavy     
among a multitude of blacklist,       consequences for those trying to  
listing the referring URL in any      use the Internet and the world    
section of a site’s web stats         wide web in a productive way.     
should be refrained from. Once a      

                              




About the Author:

http://www.theinternetone.net


Read more articles by: Danny Wirken

Article Source: www.iSnare.com


...Archive >>

Submit Your Site
Recent Articles
  • Web Design Course – You Don’t Need to Go Back to College!

    A quality Web design course can arm you with the skills and knowledge for making big money as a Web designer, or just give you the confidence to build your own fabulous site with ease But you don’t have to spend big bucks and years of your time on a college degree to become a first rate Webmaster In fact there are multiple online Web design courses that will give you a basic, intermediate, and even expert level of skill in the Web development arena...

  • How to Recover Deleted Emails and Restore Them Completely

    It can happen to anyone We accidentally delete an email that we really need And it just happened to be important work file, attachment or picture...

  • Advantages of Wireless Internet

    Wireless internet or Wi-Fi is one of the latest developments in providing people with Internet access whenever they need it - even while traveling This is a convenient way to stay connected with family members or business clients anytime of the day With the fast evolution and advancement of the Internet, millions of people all over the world make use of the Internet in their daily life...

  • Online Gift Shopping

    If you are looking for a birthday gift, wedding gift or Christmas gift this year try shopping online and you will be pleasantly surprised by the extensive range of gift ideas available to you If you are stuck for something to get or struggling to find exactly what you want on the high street, online shopping is the perfect solution for you The world is your oyster when you shop online for those all important special birthday gifts, wedding gifts, personalised gifts or whatever the case may be...

    Copyright (c) 2008 Isnare.com. All rights reserved.

  • Google
    How To Use Your htaccess File To Keep Spammers Out