How correctly to make the cover 18+?

For one site need to do the plug 18+.
As better? As is correct? In General what options are there?
Ideally, to be displayed again at a certain time, e.g. a week.
Not to bother people, especially administrators and editors.
And there will be enough times a week? Have any laws?
Site about tobacco products.
July 2nd 19 at 17:45
3 answers
July 2nd 19 at 17:47
Solution
Hi again, Sergey!

Check the appropriate cookie, and if not, then the user went for the first time (or week) and forward it to the spec. page of 18, where he will have to enter your date of birth. Then write the cookie for a period of 7 days and during this time a person's annoying :)
July 2nd 19 at 17:49
What do you mean the plug? Something like modelki? or drop down top bar?

And here is the answer on the legal part https://habrahabr.ru/post/185580/
Think of the type of modelki. - caleb_Stehr commented on July 2nd 19 at 17:52
Then you can use the option suggested or to use cookies with a lifetime of 7 days - sylvan.Pfannerstill commented on July 2nd 19 at 17:55
July 2nd 19 at 17:51
Do the entry in the localStorage, when I was shown the cover.

Check the record exists (if not - show 18+, add a record to localStorage );
Check the date of today with date of the show (more than seven days, is show 18+, updated the entry in localStorage);
Have did better. - caleb_Stehr commented on July 2nd 19 at 17:54

Find more questions by tags Web Development