Toggle navigation
TechnoWikis.com
Email or Username
Password
Remember
Login
Register
|
I forgot my password
All Activity
Questions
Hot!
Pending
Ask a Question
Privacy Policy
Contact
How to create a robots file txt
Home
Tutorials
Digital Marketing
SEO
How to create a robots file txt
(adsbygoogle = window.adsbygoogle || []).push({});
+3
votes
192
views
How to create a robots file txt
asked
Jun 23, 2019
in
SEO
by
backtothefuture
(
552k
points)
reopened
Jun 23, 2019
|
192
views
answer
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel
1
Answer
+4
votes
Best answer
The search engines when they arrive at a Web site start looking for the robots.txt file to proceed with its reading.
It will depend on its content so that the search engine spider continues within the site or goes to another.
The robots.txt file contains a list of pages that are allowed to be indexed to the search engine, which in turn restricts access selectively to certain search engines.
It is an ASCII file that must be located at the root of the site.
The commands it can contain are:
Agent user
: It is used to specify which robot will follow the orders that are presented.
Do not allow
: It is used to identify which pages are going to be excluded during the analysis process by the search engine.
It is important that each page to be excluded must be separate lines and must also begin with the / symbol.
With this symbology it is being specified;
to "all pages of the website".
It is extremely important that the robots.txt file has no empty lines.
Following are some examples;
When you want to exclude all pages;
the Agent user is: Do not allow: /.
If the goal is not to exclude any page, then the file robotos.txt should not exist in the website, meaning that all the pages of the site will be visited equally.
When a specific robot is excluded, it will be:
Agent user: Robot name Do not allow: / Agent user: * Do not allow:
When a page is excluded;
Agent user: * Do not allow: /directory/path/page.html
When all the pages of a directory of the Web site with their corresponding subfolders are excluded, it will be;
Agent user: * Do not allow: / directory /
With this file you can prevent search engines from accessing certain pages or directories, you can also block access to files or certain utilities.
Another feature is to prevent the indexing of duplicate content found on the site, so as not to be penalized.
Other considerations to keep in mind is that some robots can ignore the instructions presented in this file, and it must also be clear that the file is public because anyone who writes www.example.com/robots.txt can have access to it.
Now the question may be;
How to generate the robots.txt file?
In fact it is quite simple since it is a text document with the name "robots.txt" and then upload it to the root of the domain of the page, it is there where the search engines will go to find it for reading.
A basic robots.txt file can be:
User-agent: *
Disallow: / private /
Instructions are generated to deny access to a directory that will be "private" for all search engines.
The command determines that it is addressed to all robots (User-agent: *), specifying that the directory is unauthorized (Disallow: / private /).
The parameter that is used for the Google search engine is;
User-agent: Googlebot
As mentioned above, its use in SEO is used to restrict robots' access to duplicate content.
answered
Jun 23, 2019
by
stackoverflow
(
3.5m
points)
edited
Jun 23, 2019
ask related question
comment
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Related questions
+5
votes
1
answer
How to create a Sitemap xml file
asked
Jun 23, 2019
in
SEO
by
backtothefuture
(
552k
points)
|
285
views
+3
votes
1
answer
Password a TXT file notepad Windows 10
asked
Jul 30, 2020
in
Windows 10
by
backtothefuture
(
552k
points)
|
784
views
+3
votes
1
answer
How to save CMD or PowerShell commands in txt file
asked
Sep 16, 2019
in
Windows 10
by
backtothefuture
(
552k
points)
|
359
views
+4
votes
1
answer
How to create a shortcut for Windows 10 File Explorer
asked
Dec 3, 2019
in
Windows 10
by
backtothefuture
(
552k
points)
|
343
views
+3
votes
1
answer
So you can create a shortcut of a document, program or file in Windows 10
asked
Dec 28, 2021
in
Help
by
backtothefuture
(
552k
points)
|
104
views
Sponsored articles cost $40 per post. You can contact us via
Feedback
All categories
Tutorials
7.5k
Microsoft
1.9k
Android
1.4k
Security
120
Linux / Unix
543
Internet
757
Virtualization
104
Apple
611
Networks
64
Other Devices
321
Other Applications
184
Hardware
19
Development
53
Digital Marketing
47
SEM
20
SEO
25
Social Media
2
Databases
14
Graphic Design
30
Guides
794
GraphicDesign
54
Networking
4
PlayStation
186
Gaming
55
Linux/Unix
85
Manzana
33
Otherdevices
38
Otherapps
49
Digitalmarketing
39
Safety
1
Developing
2
Help
685
Social Networks
34
Android Tutorial
549
iPhone Tutorial
267
News
17
Social
6
Phone
11
Telephone
9
Applications
167
Smartphones
3
Cell Phones
11
Applications
25
Travels
6
Photo
21
Education
18
Games
25
Internet
14
Music
8
Technique
10
Video
6
Windows
5
Apple
2
Cell Phones
3
TikTok
216
Trips
2
House
1
Operating System
5
Tips & Tricks
892
Solutions
6
Tutorials
3
FAQ
1
Applications
5
Cell Phones
2
Tutorials
4
Computers
6
Tutoriales
2
8
Technology
2
In Computers
1
In Applications
2
Tutorials Tutorials
9
Applications Applications
25
Aplicaciones Applications
4
Devices Devices
5
Tutoriales Tutorials
1
Tutorials u00a0 Tutorials
2
Applications u00a0 Applications
2
Devices u00a0 Devices
1
OS OS
1
Etc Etc
2
Most popular questions within the last 30 days
Please leave a comment about whether the solution works or not (with device model)
[X]Close
10,659
questions
10,791
answers
510
comments
3
users