I'm Getting an Error When I use Robots.txt Tester

Avatar
  • Answered
When I test our robots.txt file I get an error message "no user-agent" specified.
This is what I find when I test:
Disallow: */wp-admin/
Should I add:
User Agent: *
And how will it affect our site?
Avatar
IMH Support Agent 5
Hello, Thank you for your question about using the robots.txt file. Yes, you can add the * and it will not affect your site. We have article explaining more about robots.txt files and how they work — for further reference. Best, Christopher M.