SEO Tools - Search Engine Optimization Tools Free Keyword Research Tool   
 SEO Tools   15 Minute SEO   SEO Tutorial   SEO Articles   How To Google Adwords   SEO Comics   SEO Glossary   SEO Puzzle   Web Tools 

 What is Robots.txt





Top SEO Web Hosting Companies
 SEO Services
 White Label SEO
 Backlinks
 Blog Writing Service
 Website Monitoring
 TheHOTH Reviews
 Local SEO Services
 Attracta Reviews
 Guest Posting Service
 Logo Maker
 How to Start a Blog
 Popular SEO Articles
 7 SEO KPIs You Should Focus On
 10 Tips for Using Grey Hat SEO Without Getting Penalized
 7 SEO Tools to Use for Better Youtube Video Promotion
 The 7 Best Marketing Project Management Tools For Your Agency
 How Important is SEO for Lead Generation?
 Recent SEO Articles
 The Ultimate Guide to Nearshore Outsourcing: Everything You Need to Know
 Best Practices for Successful Custom Website Development Projects
 Top 9 Traffic Services for Your Business – Boosting Online Visibility
 How to Optimize Your Content for Better Search Engine Positioning
 The Ultimate Guide to Building a Strong Online Presence
 How Much is a Click: Value in Your Marketing Strategy
 The Benefits of Hiring an Organic SEO Consultant for Your Business
 SEO Tools
 Free Keyword Research Tool
 Free SEO Audit Tool
 Similar Page Checker
 Search Engine Spider Simulator
 Free Alternative to Google Keyword Planner
 Backlink Anchor Text Analysis
 Backlink Builder
 Backlink Summary
 Keyword Density Cloud
 Search Engine Friendly Redirect Check
 Htaccess Redirect Generator
 Link Price Calculator
 Reciprocal Link Checker
 Domain Age Tool
 Keyword Playground
 Website Keyword Suggestions
 URL Rewriting Tool
 Keyword-Rich Domain Suggestions
 Alexa Rank Checker
 301 Redirects
 
 Web Tools
 HTTP / HTTPS Header Check
 Whois Lookup
 Domain Age Tool
 Online MD5 Generator
 Online URL Encoder
 Online URL Decoder
 Google Malware Check Tool
 File Search Engine
 SEO Bookmarklets
 
 SEO Articles
 Iphone App Store Optimization
 2016 SEO Strategy Template
 SEO Plugins for WordPress
 How to Get Whitehat Links
 Advertising on Facebook
 Website Speed and Search Rankings
 How & Why to Use a Press Release Service
 Keyword Volume Tools
 Why Using Captchas Is a Bad Idea?
 Improve SEO Rankings with Google Plus
 How to Get Traffic from Tumblr
 How to Perform a SEO Audit
 How to Acquire SEO Customers
 How to convince your SEO client
 35 lessons a decade in SEO has taught me
 Using Google Webmaster Tools for SEO
 How to Protect Your Content
 How to Get Traffic From Slideshare
 Free SEO vs Paid SEM
 How to Choose a SEM Company
 Top Paying Adsense Keywords List
 Best Affiliate Programs
 How to Use Guest Posts for Backlinks
 Check Site Rank
 Google Adwords Alternatives
 How to Get Traffic From Pinterest
 How to Make Money with Google Adsense
 How to Get Free Press Coverage
 Promoting your book on amazon
 Google Adsense Alternatives
 The Google Panda Update
 How to Analyze Your SEO Competitors
 How to Optimize for Baidu
 SEO for Local Businesses
 Mobile search engine optimization
 SEO Friendly Designers
 Boost SEO with Google Adwords
 YouTube Traffic
 Make money website
 Top 10 Costly Link Building Mistakes
 How to get traffic
 How to get traffic from Facebook
 How to get traffic from Twitter
 HTML 5 and SEO
 SEO Careers during a Recession
 Bing Optimization
 SEO Mistakes
 SEO as a Career
 Traffic from Social Bookmarking sites
 Choosing a SEO Company
 Keyword Difficulty
 Optimizing for MSN
 Web Directories and SEO
 Importance of Sitemaps
 How to Build Backlinks
 Reinclusion in Google
 Optimizing Flash Sites
 Bad Neighborhood
 What is Robots.txt
 Google Sandbox
 Optimizing for Yahoo
 The Spider View of your Website
 Avoid SEO over-optimization
 Country Specific Search Engines
 The Age of a Domain Name
 Importance of Backlinks
 Dynamic URLs vs. Static URLs
 Duplicate Content Filter
 What Is SEO
 SEO Friendly Hosting
 More SEO Articles >>
 
 Seo Tips
 301 Redirects
 SEO Hosting
 Page Layout Ideas
 Stop Words
 
 Contact Us


Managed SEO

Robots.txt

It is great when search engines frequently visit your site and index your content but often there are cases when indexing parts of your online content is not what you want. For instance, if you have two versions of a page (one for viewing in the browser and one for printing), you'd rather have the printing version excluded from crawling, otherwise you risk being imposed a duplicate content penalty. Also, if you happen to have sensitive data on your site that you do not want the world to see, you will also prefer that search engines do not index these pages (although in this case the only sure way for not indexing sensitive data is to keep it offline on a separate machine). Additionally, if you want to save some bandwidth by excluding images, stylesheets and javascript from indexing, you also need a way to tell spiders to keep away from these items.

One way to tell search engines which files and folders on your Web site to avoid is with the use of the Robots metatag. But since not all search engines read metatags, the Robots matatag can simply go unnoticed. A better way to inform search engines about your will is to use a robots.txt file.

What Is Robots.txt?

Robots.txt is a text (not html) file you put on your site to tell search robots which pages you would like them not to visit. Robots.txt is by no means mandatory for search engines but generally search engines obey what they are asked not to do. It is important to clarify that robots.txt is not a way from preventing search engines from crawling your site (i.e. it is not a firewall, or a kind of password protection) and the fact that you put a robots.txt file is something like putting a note “Please, do not enter” on an unlocked door – e.g. you cannot prevent thieves from coming in but the good guys will not open to door and enter. That is why we say that if you have really sen sitive data, it is too naïve to rely on robots.txt to protect it from being indexed and displayed in search results.

The location of robots.txt is very important. It must be in the main directory because otherwise user agents (search engines) will not be able to find it – they do not search the whole site for a file named robots.txt. Instead, they look first in the main directory (i.e. http://mydomain.com/robots.txt) and if they don't find it there, they simply assume that this site does not have a robots.txt file and therefore they index everything they find along the way. So, if you don't put robots.txt in the right place, do not be surprised that search engines index your whole site.

The concept and structure of robots.txt has been developed more than a decade ago and if you are interested to learn more about it, visit http://www.robotstxt.org/ or you can go straight to the Standard for Robot Exclusion because in this article we will deal only with the most important aspects of a robots.txt file. Next we will continue with the structure a robots.txt file.

Structure of a Robots.txt File

The structure of a robots.txt is pretty simple (and barely flexible) – it is an endless list of user agents and disallowed files and directories. Basically, the syntax is as follows:

User-agent:

Disallow:

User-agent” are search engines' crawlers and disallow: lists the files and directories to be excluded from indexing. In addition to “user-agent:” and “disallow:” entries, you can include comment lines – just put the # sign at the beginning of the line:

# All user agents are disallowed to see the /temp directory.

User-agent: *

Disallow: /temp/

The Traps of a Robots.txt File

When you start making complicated files – i.e. you decide to allow different user agents access to different directories – problems can start, if you do not pay special attention to the traps of a robots.txt file. Common mistakes include typos and contradicting directives. Typos are misspelled user-agents, directories, missing colons after User-agent and Disallow, etc. Typos can be tricky to find but in some cases validation tools help.

The more serious problem is with logical errors. For instance:

User-agent: *

Disallow: /temp/

User-agent: Googlebot

Disallow: /images/

Disallow: /temp/

Disallow: /cgi-bin/

The above example is from a robots.txt that allows all agents to access everything on the site except the /temp directory. Up to here it is fine but later on there is another record that specifies more restrictive terms for Googlebot. When Googlebot starts reading robots.txt, it will see that all user agents (including Googlebot itself) are allowed to all folders except /temp/. This is enough for Googlebot to know, so it will not read the file to the end and will index everything except /temp/ - including /images/ and /cgi-bin/, which you think you have told it not to touch. You see, the structure of a robots.txt file is simple but still serious mistakes can be made easily.

Tools to Generate and Validate a Robots.txt File

Having in mind the simple syntax of a robots.txt file, you can always read it to see if everything is OK but it is much easier to use a validator, like this one: http://tool.motoricerca.info/robots-checker.phtml. These tools report about common mistakes like missing slashes or colons, which if not detected compromise your efforts. For instance, if you have typed:

User agent: *

Disallow: /temp/

this is wrong because there is no slash between “user” and “agent” and the syntax is incorrect.

In those cases, when you have a complex robots.txt file – i.e. you give different instructions to different user agents or you have a long list of directories and subdirectories to exclude, writing the file manually can be a real pain. But do not worry – there are tools that will generate the file for you. What is more, there are visual tools that allow to point and select which files and folders are to be excluded. But even if you do not feel like buying a graphical tool for robots.txt generation, there are online tools to assist you. For instance, the Server-Side Robots Generator offers a dropdown list of user agents and a text box for you to list the files you don't want indexed. Honestly, it is not much of a help, unless you want to set specific rules for different search engines because in any case it is up to you to type the list of directories but is more than nothing.



 
Copyright 2018 webconfs.com