Search engine optimization tools — Quality traffic made easy
Home arrow Support & Knowledge arrow SEO Secrets arrow Can I prevent search engines from crawling scripts such as Javascript and CGI?
no one can find us without SEO Effect Tools
 
 

SEO secrets - Knowledgebase

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

 

Try the SEO Effect tools to optimize your site!

The SEO Effect Search Engine Optimization platform provides a full set of SEO tools embedded in an easy, step by step workflow. Sign up for SEO Effect, try our SEO tools for free.

Free trial?

SEO Effect is live! Sign up right now for a free trial. During beta, you can use our free trial without time limitation.

 

No free trial right now? Stay tuned with our newsletter.

Follow us

Follow us:
SEO Effect on Twitter.pngSEO Effect on FacebookSEO Effect on LinkedInrss_32.pngnewsletter_stay informed(3).png