1. Home
  2. Hosting
  3. cPanel
  4. cPanel: How do I create a robots.txt file ?

cPanel: How do I create a robots.txt file ?

This guide provide you with information on how to manage which internet bots crawl your site.

 

 

Why create a Robots.txt file ?

 

A web robot’s primary job is to scan websites and pages for information. They work tirelessly to collect data on behalf of search engines and other applications.

Whether you want to fine-tune access to your site or want to work on a development site without showing up Google results.

Once implemented the robots.txt file lets web crawlers know which parts they can collect information. 

 

 

 

User-agent: *
Disallow: /buildinglayout.png 

 

 

Let’s break down the code above “user-agent” pertains to the web crawlers and the * sign means all web crawlers. The  first line grabs attention by saying “Listen up all web crawlers!” . 

 

We move onto our second line which lets the web crawler know its direction. The forward slash (/) stops the bots from searching all the pages on your site. You can also discourage information collected for one specific page, in this case.

 

 

There are many types of web crawlers (aka user-agents) that can be specified. Below is a chart of the most popular web crawlers followed by as their associations.

 

 

The top 10 bots you should know about.


How to create a robots.txt

 

Step 1-  Login to Cpanel

  • Please see our article on logging into cPanel here.

 

 

Step 2 –  Go to File Manager

 


 

Step 2 –  Select public_html and create a new file.

 


 

Step 3 –  Edit the new robots file to add your instructions and save.

 


 


 

 


TIP: Should you require more information regarding Google search please How to get website displayed on Google.

 

 

Updated on October 19, 2023

Was this article helpful?

Related Articles