How to block the user from accessing the site, every x interval?

Joined
Mar 19, 2022
Messages
16
Reaction score
2
How to block user from accessing my site, every 24 hours by ip
if anyone has ideas please share
 
not understanding the question. do you want to block them once in a 24hr interval? or just block the IP at all times?
 
not understanding the question. do you want to block them once in a 24hr interval? or just block the IP at all times?
sorry my english i'm from brazil
I want to block all users from accessing the site every 24 hours
if the user entered my site at 7:00 am he will not be able to enter back until 7:00 am the other day
 
You will need to store the IP and when the ban expires current time + 24 hours in a table on a database. Each time you website have to check if the IP is on that table and when the ban expires.
 
You will need to store the IP and when the ban expires current time + 24 hours in a table on a database. Each time you website have to check if the IP is on that table and when the ban expires.
i looked everywhere i thought only a wp plugin would be possible
can you configure such a project? if yes envy me pm
 
This is a simple task, but you need to create a table and log the IP and timestamp.
Learn how phpmyadmin works and how to do SELECT and INSERT queries and you will be good to go.
 
Back
Top