Allen 2023-04-11 11:41:16 4483 0 0 0 0
TYCMS,开发日志,增加内容关闭功能,帖子设置后,显示内容关闭,无法回复。增加ip库,分为IP地址和IP段,主要是各搜索引擎的蜘蛛和一些需要屏蔽的IP,用于统计时排除库里的IP。

增加内容关闭功能,帖子设置后,显示内容关闭,无法回复。

增加ip库,分为IP地址和IP段,主要是各搜索引擎的蜘蛛和一些需要屏蔽的IP,用于统计时排除库里的IP。

ip_flag=1-ip,3-ip段

ip_sort=1-蜘蛛,2-屏蔽ip


一些常用的sql语句

--查询统计数量
select count(*) from ty_stat 
where site_id=141 and stat_date='20230410'

--查询统计详细
select stat_id,site_id,stat_date,stat_time,from_ip,from_lang,from_os,to_url,main_title
from ty_stat 
where site_id=141
--and stat_id>=53368
and stat_date>'20230410'
order by stat_id desc limit 100;

--查看高频ip,可以加入ip库过滤掉
select from_ip,ipqty from (
select from_ip,count(*) as ipqty from ty_stat where stat_date>'20230409' group by from_ip
) dd
where from_ip not in (select ip_adress from ty_iplib where ip_flag in (1,7))
order by ipqty desc;

【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=SYASMTajW4IC
Tag: TYCMS 开发日志
我也要發一個   ·   返回首頁   ·   返回[TYCMS]   ·   前一個   ·   下一個
歡迎評論
未登錄,
請先 [ 註冊 ] or [ 登錄 ]
(一分鍾即可完成註冊!)
返回首頁     ·   返回[TYCMS]   ·   返回頂部