Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

google crawl errors

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
mjenning
Smarty n00b


Joined: 04 Nov 2012
Posts: 1

PostPosted: Sun Nov 04, 2012 3:17 pm    Post subject: google crawl errors Reply with quote

Hi,
I am seeing thousands of google crawl errors, each one is a compiled smarty file with a name like, %%FD^FDF^FDFCA620%%file.tpl.php

So what I think is happening is that google is crawling a compiled smarty file, but the name has changed by the next time google crawls the page.

Is it possible to remove the string prepended to the filename?

Any suggestions?

Many thanks

Mark
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Nov 04, 2012 4:12 pm    Post subject: Reply with quote

Google should not at all crawl compiled or cached template files.

These folders should be excluded by the robot.txt file on the server.
Back to top
View user's profile Send private message
cbj4074
Smarty Regular


Joined: 10 Nov 2011
Posts: 49

PostPosted: Mon Nov 12, 2012 10:16 pm    Post subject: Reply with quote

My humble opinion is that your Smarty template files should exist outside of the Web-server's document root altogether. There's no reason for your template files to be accessible via HTTP request.
Back to top
View user's profile Send private message
douglassdavis
Smarty Junkie


Joined: 21 Jan 2008
Posts: 541

PostPosted: Tue Nov 13, 2012 12:19 am    Post subject: Re: google crawl errors Reply with quote

when you say google crawl error, you mean you can search for your compiled templates in google and get results?

how is it even finding them I wonder? If you don't want to move your compiled templates to outside of doc root, then at least block files in that dir from being browsed and make sure you aren't allowing browsers to view your directory listings.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Nov 13, 2012 2:46 am    Post subject: Reply with quote

even if compiled files were under the htdoc root, there should be no links to them, unless you allow directory indexes on the web server and have a link to that page. that said, it is a generally good idea to keep them out of htdocs, or deny direct access with "deny from all" rules in .htaccess or apache config.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP