Jump to content

Archived

This topic is now archived and is closed to further replies.

johnnyk

robots.txt

Recommended Posts

This isn't really an HTML question, but close enough:

If I specify nothing in the robots.txt, what does the bot index? Say I have a directory /scripts/ which contains the action scripts of my forms (but my website does not link to any file in this directory via anchor), would I have to put that under disallow? How about a directory that contains php functions?

Share this post


Link to post
Share on other sites
If nothing is in robots.txt it's like having none (= it indexes everything). Everything that the search-engines may not see should be as disallow in robots.txt

Share this post


Link to post
Share on other sites
If you have no links to your directory /scripts/ anywhere and no one else is linking to that folder, search engines shouldn't find it.

robots.txt was created to stop search engines from getting pages that have linked but access requires sign up or something else. Or the site owner doesn't want his page on search engines.

Seconds, search engines only read the output of the file (so, php, asp, html, or whatever) will be the same for search engines. So, if your script files don't output anything, nothing will be spidred.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.