Allen 2023-04-11 11:41:16 4380 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;

Tag: TYCMS 开发日志
我也要发一个   ·   返回首页   ·   返回[TYCMS]   ·   前一个   ·   下一个
欢迎评论
未登录,
请先 [ 注册 ] or [ 登录 ]
(一分钟即可完成注册!)
返回首页     ·   返回[TYCMS]   ·   返回顶部