Jump to content

robots.txt


johnnyk

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?
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.