Use PHP to limit the number of pages per day to view the implementation of the idea, IP browse page
Implementation ideas: First, create a table, such as the following
Copy the Code code as follows:
CREATE TABLE Ip_log
(
Ip_log_ip VARCHAR (40),
Ip_log_date date,
Ip_log_visits TINYINT (1),
Ip_log_page varchar (255),
PRIMARY KEY (ip_log_page,ip_log_ip,ip_log_date),
);
Then, write the code, when the user access to record the IP information, the initial value of the number of views is 1,
User access is not allowed when the number of pages is equal to the set value.
Finally you can delete all the data in a cron table every night 00:00, such as using truncate
http://www.bkjia.com/PHPjc/960720.html www.bkjia.com true http://www.bkjia.com/PHPjc/960720.html techarticle use PHP to limit the number of pages per day to browse the implementation of the idea, IP browsing page implementation ideas: First, create a table, such as the following copy code code is as follows: CREATE TABLE ip_l ...