This is my redirect file in php
<?php
header("Location: https://www.ejemplo.org/anuncio1.php");
?>
What code do I need so that when a person with an ip. for example 192.168.1.1 can only be redirected once a day or once per hour to that file anuncio.php
, and when you try it a second time in a certain time. send it for example to https://wwww.ejemplo.org/solosepermiteunavisitaporhora.php
or print a message that says: You have visited this website recently, return in 1 hour.