Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-11-18 06:04:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

slimstat query

Can someone tell me of a mysql/php query for slimstat which will help me just get a page with IPs who visited a particular page in one of my sites?

The site is under attack for a few months now with ‘visitors’ from all over the place just visiting /id/title —-> /id/my-title.

I ignored this initially as I thought that it would die out but unfortunately the visits are relentless so now I’ll have to see how many times each IP has visited the page and block the most abusive ones with htaccess.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2014-11-18 10:24:31

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: slimstat query

Hey Yiannis – not to deliberately side-step your MySQL/PHP request, but do you have access to web server log files, and a UNIX/Linux-based shell? If so, this might be useful: www.bencarpenter.co.uk/awk-for-apache-nginx-logs

Offline

#3 2014-11-18 20:02:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: slimstat query

Thanks pete

I’m looking for something less unixy… I found this which might dive me a kick start… or a gentle push.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2014-11-19 13:04:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: slimstat query

Ok…. That was more of a gentle push…. I am still trying to get up to speed.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2014-11-19 15:27:04

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: slimstat query

Hi Yiannis,

if your logs are in txp_log (or some other) table, why wouldn’t you proceed with a plain [smd|etc]_query?

Offline

#6 2014-11-19 15:37:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: slimstat query

Hi Oleg

The logs are in a slimstat table outside the txp system. I am using wet_slimpattern to connect to the slimstat db.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2014-11-19 16:03:07

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: slimstat query

colak wrote #285942:

The logs are in a slimstat table outside the txp system. I am using wet_slimpattern to connect to the slimstat db.

Pity, I’ve got no idea of Slimstat db structure. You’ll probably have more chance on their forum.

Offline

#8 2014-11-19 16:12:20

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: slimstat query

etc wrote #285943:

Pity, I’ve got no idea of Slimstat db structure. You’ll probably have more chance on their forum.

Would this possibly help?

https://github.com/stephenwettone/slimstat/blob/master/page/setup.php

Offline

#9 2014-11-19 16:32:46

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: slimstat query

michaelkpate wrote #285944:

Would this possibly help?

Thanks, Michael, but I need a harder push at this time of the day. :)

Offline

Board footer

Powered by FluxBB