Javascript - How to "block" access to a website and unlock it if the user takes a specific page of facebook or wait a certain time?

0

The idea is to create a div within the whole body of the site for the user to see when they enter, so it would have something like "short the page to enter now or wait 30 seconds". The part of the time is to do in js with the setinterval and getelement to give a display: none after 30 seconds, the problem is the part of the tanned, how to do and how not to display the message again if the user has already tanned. / p>     

asked by anonymous 10.07.2018 / 01:23

1 answer

0

You can record the ip of the user that you liked in the database of your application and if you go again you will not be able to enjoy it again, because it will bar ip.

I do not know which server language to use, but in PHP you get the IP so

$_SERVER['REMOTE_ADDR']

I hope I have helped.

    
10.07.2018 / 01:29