How to Create a robots.txt File in cPanel

0 Replies, 1 Views

How to Create a robots.txt File in cPanel.

You may have heard of a robotx.txt file and wondered, what is this file for? Well, you’re in the right place! Below, we will review this file and why it’s crucial.


What is a robots.txt file?
First of all, the robots.txt is nothing more than a plain text file (ASCII or UTF-8) located in your domain root directory, which blocks (or allows) search engines to access certain areas of your site. 

The robots.txt contains a simple set of commands (or directives), and it’s typically applied to restrict crawler traffic onto your server, thus preventing unwanted resource usage.

Search engines use so-called crawlers (or bots) to index parts of a website and return those as search results. You might want specific sensitive data stored on your server to be inaccessible for web searches. The robots.txt file helps you do just that.


Note: Files or pages on your website are not entirely removed from crawlers if these files are indexed/referenced from other websites. To protect your URL from appearing in Google search engines, you can password-protect the files directly from your server.
How to create the robots.txt file.
To create your robots.txt file (if not already existent), follow the following steps:

1. Log into your cPanel account


2. Navigate to FILES section and click on File Manager.


3.  Browse File Manager to the website directory ( e.g public_html ) then Click on “File”  >> Type in “robots.txt”  >> Click on “Create New File”.

4. Now, you are free to edit the content of this file by double-clicking on it.


Note: you can create only one robots.txt file for each domain. Duplicates are not allowed on the same root path. 

Each domain or sub-domain must contain its own robots.txt file.   



What do you think about this post? Wink

We want to hear from you all. Heart




Users browsing this thread: 1 Guest(s)