Prevent indexing of page clippings

3

If you cut a page by separating head , nav , etc ... And pull everything with include on index.php , will Google index those cut pages?

I want to separate some parts by creating head.php and nav.php , then I'll pull into the index doing a include , but I need google to index my index BUT do not index% and head.php because these will be just clippings to make it easier to maintain, is it possible?

Since if I index the file nav.php the search thefts will not only stop indexing head.php but will also stop indexing my entire index because I'll be pulling the file in it, how do I do it?     

asked by anonymous 15.03.2017 / 12:41

1 answer

2

Google "sees" and processes only what your server sends in response, simply by right-clicking and clicking view source ( view page source ) for browsers in English) this is what google processes, although it is able to go a little further and identify / process manipulations of the DOM with javascript with feature for example the tools like Selenium .

Anyway, google and other search engines can not identify the internal processes of the server, just what it sends to the client side and the processes that occur on this side (in the browser).

Ex:

head.php

<!DOCTYPE html>
<html>
    <head>
        <title>SO PT</title>
    </head>

index.php

<?php include('head.php'); ?>
<body>
    <h1>Olá SO PT</h1>
</body>
</html>

The google web crawlers here (index.php) will only process / see:

<!DOCTYPE html>
<html>
    <head>
        <title>SO PT</title>
    </head>
    <body>
        <h1>Olá SO PT</h1>
    </body>
</html>

You will not know if head.php was "injected" into index.php via include/require .

In this way and to respond directly to your question, this way you do not have to assign robots to see only part of the page.

    
15.03.2017 / 12:56