Discuss Exclude text from Google indexation in the Search Engine Optimization forum on Dev Shed. Exclude text from Google indexation Search Engine Optimization forum discussing related topics such as Google, PageRank, Link Exchange, and Link Popularity. Improve your ranking in the Search Engines by employing good optimization techniques.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 142
Time spent in forums: 1 Day 3 h 12 m 55 sec
Reputation Power: 6
Exclude text from Google indexation
Hello
on my site, i have secondary menu (it's only useful tool for users), which in include in all pages of this site (~30k pages)
file size 12-15kb.
that's why i want to exclude content of this file from google indexation.
how can i do it ?
this is separate file, which i include (php) in all files
is there any code like in adsese is (<!-- google_ad_section_start(weight=ignore) -->) or may be other way?
thank you
P.s. can this file cause any problem for this site. if google check the same file in all pages. (page have ~50-80kb size and of course unique content, title, and description)
Posts: 78
Time spent in forums: 11 h 14 m 51 sec
Reputation Power: 13
You should not worry if all the generic pages are of unique content. Google see a webpage as a whole, not as separate files because they see it from the client side.
By the way, you cannot exclude a file (which is part of a page) from Google's index. You can, however, exclude pages from Google bots. Refer to robots.txt if it interests you
Posts: 142
Time spent in forums: 1 Day 3 h 12 m 55 sec
Reputation Power: 6
Quote:
You should not worry if all the generic pages are of unique content. Google see a webpage as a whole, not as separate files because they see it from the client side.
yes, may be u are right, but in real, just now google keep in his index only 15-16k pages, and only 87 pages "Results 1 - 87 of about 15,500 from" is showing and all with supplemental mark.
Quote:
By the way, you cannot exclude a file (which is part of a page) from Google's index.
Posts: 2,266
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 535
Quote:
Originally Posted by alexo
yes, may be u are right, but in real, just now google keep in his index only 15-16k pages, and only 87 pages "Results 1 - 87 of about 15,500 from" is showing and all with supplemental mark.
in can do , if i include this file as javascript
A robots.txt is easier to do and needs no maintenance as long as the index name stays the same. Keep it simple .
Posts: 142
Time spent in forums: 1 Day 3 h 12 m 55 sec
Reputation Power: 6
Seems, that u don't understand me right, or don't know php
php is server side/
Gbot don't understand is this file included or no ..
Gbot only check the last file (in this file u can include 10 other files, but Gbot see only content(text-images) from this files and even don't know in which folders are located this included files)
Posts: 78
Time spent in forums: 11 h 14 m 51 sec
Reputation Power: 13
Quote:
Originally Posted by alexo
i'm sorry, can u explain how can i do it via robots.txt ?
1. Disallow: /included.php in robots.txt
2. template for all files is <?php include ("../path/included.php"); ?>
so u think that in this case Gbot don't check this included.php file content ?
i don't think so :-(
Google will not index the included.php file if you were to place the above specified robots.txt in your directory. However, Google will continue to index all your other pages (with the embedded included file).
As what has been mentioned before, Google should not see any problems utilizing PHP includes (as this process is transparent to them). You might want to refer to the following video from Google regarding supplemental results: