Hello
friends welcome to my blog Search Engine Learner, today I am going to tell you
about a thing called Robots.txt.
Now you must
be thinking that what is this Robots.txt so let me tell you guys.
If you want
to know what this thing is, then first of all you have to type it in the search
bar of google.
Like if you
have a website, then you have to type it in the search bar and type Robots.txt
by putting forward slash mark next to it and then press enter key, after that
the text file you will see is called the robots.txt file.
Here is a small introduction to it, we will know in the next headline why it is important
for our website.
What is Robots.txt used for in the website?
When Google's bots come to our website, they first search the robots.txt
file. If you have not created a robots.txt file in your website, then they index
all the content that has been put on your website.
It seems, because of which we did not have to index the content in google,
we also got it indexed if you create a robots.txt file inside your website.
Then search engine bots index those content in google only according to its
instructions.
Will do what you want to do. Now you must have come to know that what its
use on our website is.
Where is the robots.txt file located in the website?
If your website is built on WordPress, then it is in the root folder of
your website, when search engine bots come here and they do not find the
robots.txt file, then they can index all the content that is lying on our
website. And if you have created a robots.txt file, then search bots will index
only the content that you want to do according to your instructions.
If you do not know whether your website has robots.txt or not, then first
you have to type the link of your website in the search bar of the search
engine – For example – www.google.com/robots.txt a text page will open in front of
you. It will happen as you can see in the screenshot.
![]() |
What is robots.txt |
How to Create Robots.txt File.
Robots.txt file is very easy to write, you can create it in this way
User-agent: * This symbol is used to crawl all types of search engines.
If you want that only Google's search engine to crawl and index your
website, then for this you have to write user-agent: google.
Disallow: wp-admin/ this means that you do not want search engine bots to crawl and index the
login page of your website.
Similarly, you can crawl and index more pages.
Advantages of Robots.txt File.
If we talk about its benefits, then it has many benefits which are like
this.
With the help of robots.txt, you can make any important content of the
website private.
If there is any bad content on your website, then you can block that page
with the help of this.
Robots.txt helps you a lot if your website is not ranking in search engines
for some reason.
Conclusion:-
In the end, I would like to say that the Robots.txt file helps the crawlers
and bots of the search engines to decide which URLs to index on your site and
which pages should not.
This is specifically used to avoid overloading your site with requests.
We also use this to protect our website from hackers, if you write
Disallow: wp-admin/ in the robots.txt file and save it and upload it, then the
search engine will ever crawl the login panel of your website. Will not.
Due to which the fear of hacking the website on the internet is less
likely.
Comments
Post a Comment