Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo

Is It Ok Not To Have A Robots.txt ?


  • Please log in to reply
13 replies to this topic

#1 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 24 March 2004 - 09:46 AM

I'm not too familiar with the robots file but i've beeb reading a lot about it, yet I still can't figure out if it's better to have one or not.

I want all spiders to fully spider my site, I don't need to tell them not to do anything.

So my question is:

Yes or No, is it still better to have a robots.txt even if I don't want it to say anything?

Does it look 'bad' to not have one?

#2 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,559 posts
  • Location:UK

Posted 24 March 2004 - 09:54 AM

It's fine not to have one. No problem. It doesn't look bad.

However, for various reasons I suggest having an empty one.

#3 Denyse

Denyse

    HR 4

  • Active Members
  • PipPipPipPip
  • 189 posts
  • Location:Montreal, Quebec, Canada

Posted 24 March 2004 - 09:57 AM

Alan could you expand on those various reasons - I would like to understand the rational

#4 Grumpus

Grumpus

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 786 posts

Posted 24 March 2004 - 10:02 AM

If for no other reason, it keeps your error log from filling up with 404 calls to the robots.txt file.

G.

#5 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,559 posts
  • Location:UK

Posted 24 March 2004 - 10:05 AM

Here's a couple of reasons.

Having a robots.txt means your Web server can handle the request without throwing an exception. It only causes one line in your logs, rather than a line in your access log and a line in your error log. I guess from the server's perspective it's more efficient to have one than to NOT have one, though I haven't measured this for each Web server. :manybounce:

Second reason: sooner or later you implement a 404 handler. Then requests for a missing robots.txt file cause the 404 handler to be called, and it has to deal with it. If it fails to deal with it (because you never thought of it!) then it may output something invalid, which may cause robots to avoid your site.

#6 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 24 March 2004 - 10:19 AM

In order to create a blank robots.txt do I literally just create a blank text file, save it as robots.txt, and upload it to my site?

Thanks.

#7 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,559 posts
  • Location:UK

Posted 24 March 2004 - 10:21 AM

That will do, although I use:
User-agent: *

Disallow:
Make sure the file is readable! If it generates a 403, that's far worse than a 404. Your site will not be indexed.

#8 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 24 March 2004 - 11:56 AM

Make sure the file is readable!  If it generates a 403, that's far worse than a 404.  Your site will not be indexed.

Thanks! How can I test to make sure the file is readable?

#9 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,559 posts
  • Location:UK

Posted 24 March 2004 - 12:10 PM

Try to access it using a standard Web browser and see what happens.

#10 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 24 March 2004 - 02:26 PM

Try to access it using a standard Web browser and see what happens.

I've added the robots.txt and I think it is ok. You wouldn't mind double-checking though would you?

http://www.italycharms.com/robots.txt



Thanks!

#11 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,559 posts
  • Location:UK

Posted 24 March 2004 - 02:28 PM

Perfect. :propeller:

#12 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 24 March 2004 - 03:30 PM

Thanks Alan!

#13 josh1r

josh1r

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 321 posts
  • Location:New York

Posted 25 March 2004 - 05:14 PM

Sorry, one more quick question. Now that I have the robots.txt uploaded to my site, do I need to put any code in my index file to tell the spiders to look for it? Or since it's basically blank does it not matter anyway?

Thanks again!

#14 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 25 March 2004 - 05:25 PM

Nope, you don't need to do a thing Josh. The spiders will automatically look for the robots.txt file to see if you have any special instructions for them.

Oh, if only everything else with spiders was as simple and easy. :propeller:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users