Is there a programmatic API to tell what are the recently visited pages (30 days) within my site?
I know such information is already stored in the browser history. As far as security, I only care about pages visited within the site (domain) the script is operating of. My intention is to use the (Url, title) history information to generate a custom recently visited pages list. My site has million of pages.
If there's no such standard API (this CSS hack not being one) then:
- What would be the theoretical security reason not to allow a given domain see the visits to the domain itself?
- What other approaches may fit my intention?
There is nothing in the history api that will give you that information from your domain. If you want to do it, use the browsers localstorage to store the URLS when the page loads. Other option is to keep track of it on the server and store it in your database.