I want to hide a folder named ( beta ) in the public_html from the search engines also all it's subfolders and files, do i have to put the file in the root folder ( / ) and do the content of the robots.txt like the following
User-agent: *
Disallow: /public_html/beta
OR
put robots.txt in the public_html and do the content as the following
User-agent: *
Disallow: /beta