forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: AppleBag on May 21, 2008, 11:09:32 pm

Title: [Solved]: Where can I add the no index code so Search Engines don't list my site?
Post by: AppleBag on May 21, 2008, 11:09:32 pm
Hi all,

I want to try everything I can to hide a personal gallery from the search engines. I just don't want anyone except people that are personally given the site to know about our personal family gallery (i.e. no strangers).

Can someone tell me which file(s) to edit to add the no index code, (and I'll take any other tips you have to offer as well) :)

thanks!
Title: Re: Where can I add the no index code so Search Engines don't list my site?
Post by: Nibbler on May 21, 2008, 11:17:18 pm
This is not a Coppermine question. See http://www.robotstxt.org/faq/prevent.html
Title: Re: Where can I add the no index code so Search Engines don't list my site?
Post by: AppleBag on May 21, 2008, 11:51:38 pm
Thanks. I guess I should of been a little more detailed with my question. I was meaning the meta tags for robots. I do not know how the templating system works for coppermine; if there is one header for the entire site, so that adding the meta tags to that alone would be enough, or if I would need to add them to many/multiple pages, etc.

What file(s) would I need to edit to add the meta tags? :)
Title: Re: Where can I add the no index code so Search Engines don't list my site?
Post by: Riox on May 22, 2008, 04:26:36 am
1. Use .htaccess and make user accounts for your invited guests.
2. Use .htaccess and set a new default index (so no one will find it by chance)
3. Disable registration, make the gallery un-view-able for guests and give the accounts to your guests

 
Title: Re: Where can I add the no index code so Search Engines don't list my site?
Post by: Joachim Müller on May 22, 2008, 10:52:08 am
What file(s) would I need to edit to add the meta tags? :)
themes/yourtheme/template.html

1. Use .htaccess and make user accounts for your invited guests.
2. Use .htaccess and set a new default index (so no one will find it by chance)
3. Disable registration, make the gallery un-view-able for guests and give the accounts to your guests
That would be a brute-force method that will shy away legitimate users who are not so computer-savy. The first option (keeping the major search engine spiders from indexing your site in the first place) by editing the robots.txt file is the best solution. No need to edit the meta tags if you disallow indexing in robots.txt, as the spiders of "good" search engines will respect robots.txt and stop indexing at once without even looking at your pages or having to read the meta tags. The "bad" spiders will (like email harvesters) disrespect both robots.txt as well as the meta tags, but they won't lead to your site getting indexed on publicly available search engines anyway, so there is little need for concern. The brute-force method with an alternative .htaccess-based authentification scheme will (as suggested) scare legitimate users away and won't teach your newbie-users how to get access (by contacting you) - they will instead just leave for good. If you're very concerned about privacy, your strategy should be three-fold:
Title: Re: Where can I add the no index code so Search Engines don't list my site?
Post by: AppleBag on May 22, 2008, 03:25:36 pm
Great information guys, I will definitely keep the brute force method in mind for other projects I may need to lock down extra tight.

Thanks!