0
I want to display a welcome video on my site only when it is the first time the user enters my site, I thought to use the following code:
$ip = $_SERVER['REMOTE_ADDR'];
It returns me the user’s ip and so I would store in the database and every time someone enters the site will do a search if already had this ip, otherwise it displays the video, but this would be the correct way? Over time the search would be very slow and heavy? How can I solve in the best way if this is not the most viable?