|
@@ -1,6 +1,10 @@ |
|
|
library(tidyverse) |
|
|
library(tidyverse) |
|
|
library(RSQLite) |
|
|
library(RSQLite) |
|
|
library(ipapi) |
|
|
library(ipapi) |
|
|
|
|
|
# sqlite3 access.db |
|
|
|
|
|
# create table access(ip, null1, user, timestamp, zone, req, status, size, referer, agent, null2); |
|
|
|
|
|
# .separator " " |
|
|
|
|
|
# .import access.log access |
|
|
|
|
|
|
|
|
dbConnect(SQLite(), "access.db") %>% |
|
|
dbConnect(SQLite(), "access.db") %>% |
|
|
dbGetQuery("delete from access where ip = '192.168.0.254' or user = 'maxx' or agent like '%bot%' or ip = '164.2.255.244';") |
|
|
dbGetQuery("delete from access where ip = '192.168.0.254' or user = 'maxx' or agent like '%bot%' or ip = '164.2.255.244';") |
|
|