Module for telling search engines to go away...
rWatcher
![]()
Joined: 2005-09-06
Posts: 722 |
![]() |
|||
If anyone is interested I've created a Gallery 3 module which will add a few HTML META tags that will tell search engines to not index/archive you web site. It's useful if you're running a personal site and you want to try and keep it from turning up in in random search results. If anyone is interested, the code is attached to this post. Documentation can be found at http://codex.gallery2.org/Gallery3:Modules:nobots Edit: ---
|
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
rWatcher
![]()
Joined: 2005-09-06
Posts: 722 |
![]() |
|||
I've got a (cheap) shared hosting account on a larger site so I don't have access to the root domain folder. I suppose I could probably put a robots.txt file in my accounts root folder, but I'm not sure how effective a domain.com/users/USERNAME/robots.txt file would be. Plus it would tell anyone/anything that thought to look for a robots file where the various sub-websites within my account were located at. I've also got phpnuke and mediawiki installed into different sub folders within my account with those same META tags. As far as google is concerned neither of those folders exist so it seems just as effective as a robots.txt file would be. |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
robots.txt is only read if when it's at the root of the website. www.example.com/robots.txt or photos.example.com/robots.txt not ever at www.example.com/~username/robots.txt or any other sub-directory. ____________________________________________ |
||||
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
|||
Awesome. I've pulled this into the gallery3-contrib repo! |
||||
rWatcher
![]()
Joined: 2005-09-06
Posts: 722 |
![]() |
|||
nivekiam wrote:
robots.txt is only read if when it's at the root of the website. www.example.com/robots.txt or photos.example.com/robots.txt not ever at www.example.com/~username/robots.txt or any other sub-directory. I thought that might be the case, but I wasn't sure. Thanks for the info! bharat wrote:
Awesome. I've pulled this into the gallery3-contrib repo! Cool, thanks! |
||||
sproonz
Joined: 2010-05-23
Posts: 11 |
![]() |
|||
<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp"> <meta name="teoma" content="noindex, nofollow, noarchive"> These two lines lack the end tag '/>' (to be XHTML 1.0 Transitional) |
||||
rWatcher
![]()
Joined: 2005-09-06
Posts: 722 |
![]() |
|||
sproonz wrote:
<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp"> <meta name="teoma" content="noindex, nofollow, noarchive"> Fixed, thanks |
||||
pinn8
Joined: 2009-02-19
Posts: 74 |
![]() |
|||
My G3 installation always has these meta tags, even though I am not using the nobots module. My G3 is up to date -- I pulled from git last night. What can I do to get rid of these entries so that Google and other bots will crawl my site? |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
|||
Those tags are baked into the page.html.php file in GreyDragon... |
||||
pinn8
Joined: 2009-02-19
Posts: 74 |
![]() |
|||
Thank you. That was it. |
||||
vudo
Joined: 2011-03-21
Posts: 2 |
![]() |
|||
rWatcher wrote:
If anyone is interested I've created a Gallery 3 module which will add a few HTML META tags that will tell search engines to not index/archive you web site. I've used this module and it works great. Now I want search engines index my website. Please tell me how can I do? Thank you very much! |
||||
undagiga
Joined: 2010-11-26
Posts: 693 |
![]() |
|||
You could try the XML sitemap module. But note that it takes time for Google to start indexing a site that it was previously excluded from. As I understand it, Google doesn't want to swamp or overload a site, so it will index in stages. Not sure about the other crawlers. Note also that you need to correct some missing "/" characters in the module. Details in the relevant forum thread. U-G |
||||
vudo
Joined: 2011-03-21
Posts: 2 |
![]() |
|||
Thank you. I'll try it |
||||
rWatcher
![]()
Joined: 2005-09-06
Posts: 722 |
![]() |
|||
The metadescription module might help with that too: |
||||
undagiga
Joined: 2010-11-26
Posts: 693 |
![]() |
|||
While I use the metadescription module, I doubt that it has any impact. My understanding is that the major search engines stopped using these fields years ago, especially keywords, because of misuse and abuse. IIRC the description is occasionally used, but not in a way that affects ranking. U-G |
||||