Search engine optimization tools — Quality traffic made easy
Home arrow SEO Secrets arrow Can I prevent search engines from crawling scripts such as Javascript and CGI?
 
 
Loading...

Can I prevent search engines from crawling scripts such as Javascript and CGI?

When your external scripts like JavaScript and CGI scripts are not protected, they are accessible by search engine spiders. This increases Download time as the spiders Crawl your scripts instead of searching for relevant information. The same is true for external CSS style sheets, but because webmasters can use style sheets to “cheat”, the global opinion between SEO experts is that search engine spiders should have access to CSS style sheets.

 

Solution: Put your scripts in a specially made Directory that is not accessible to spiders. You do this with the Robot exclusion protocol. Open a text writer like notepad and enter the following:


User-Agent: *
Disallow: /scripts/

 

Save these lines as robots.txt and place the file in your root directory. This disallows all (*) spiders (User Agents) access to the /scripts/ directory

However, not all search spiders respect these rules.

0 votes so far for this article. Did this article help you? YES NO
Article Id: 94 - Version: 2 - Created: 29-11-1999 - Last Updated: 29-11-1999 - Hits: 881 
Keywords:
Categories: Do's and Dont's

Comments & Questions

No comments yet!

Follow us / Share this

Follow us:
SEO Effect on Twitter.png SEO Effect on Facebook SEO Effect on LinkedIn rss_32.png 

Knowledge Base Stats

Articles
  • 225 Total Articles
Most Popular
Comments & Questions
  • 14 Comments Posted
Statistics
  • 294764 Articles Viewed
  • 333 Articles Emailed
  • 9684 Articles Printed