This Help forum is for issues relates to the latest release (1.2.x). For issues related to beta or svn version please use their own Help forum.
When requesting help please provide as much information as possible. Explain what version of webtrees, PHP and MYSQL you are using. If possible provide a URL to your site so we can see the problem first-hand.
Tip: Think about putting these details in your signature, so it appears in the footer of ALL your messages
  • Page:
  • 1

TOPIC:

Sitemap privacy 8 years 11 months ago #1

  • Rolf
  • Rolf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 42
I experimented with the sitemap module and discovered,
that it puts links to living individuals into the xml, who are hidden from visitors in webtrees.

Of course, if such a link is used (e.g. by a indexing bot of a search engine),
it gives the message that "the individual does not exist or you do not have permission to view".

My Question:
Shouldn't the sitemap module better only generate links to individuals, which are visible to visitors?

Thanks for explaining!
Rolf
Rolf
www.familienstamm.ch
Using: webtrees 1.7.12, PHP 7.2.12

Please Log in or Create an account to join the conversation.

Re: Sitemap privacy 8 years 11 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 14491
The sitemap only includes links to individuals where the name is visible.

So, if you have "show private names" => "show to visitors", then all records will be included.

Also, the sitemap is generated according to the *current visitor*. If you are logged in as an administrator, and you fetch the sitemap file directly, then you will always see everything. webtrees relies on the fact that google does not log in.

Also, the sitemap files are cached for 14 days.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Solved: Sitemap privacy 8 years 11 months ago #3

  • Rolf
  • Rolf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 42

The sitemap only includes links to individuals where the name is visible.
So, if you have "show private names" => "show to visitors", then all records will be included.


On my site the setting of "Names of private individuals" is "show to members".

Also, the sitemap is generated according to the *current visitor*. If you are logged in as an administrator, and you fetch the sitemap file directly, then you will always see everything. webtrees relies on the fact that google does not log in.
Also, the sitemap files are cached for 14 days.


In this case, my question is answered: I was logged in on a separate tab as admin.
And: When I fetch the sitemap logged in as admin, the "wrong" sitemap is cached,
and when I log out and fetch it again, I (or google) get the cached sitemap with links to private indivs.

I found, that clearing the cache seems to be possible by using the Button Save under Administration/Sitemaps.
After this, fetching the sitemap when logged out filters the individuals as desired.

Thanks for the explanations!
Rolf
Rolf
www.familienstamm.ch
Using: webtrees 1.7.12, PHP 7.2.12

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum