Who Is...
Pages: 1 2
Clive Semmens (2335) 3276 posts |
Ooops. I’ve been muddying up a more serious thread elsewhere again. Sorry. I posted a link to a picture of my desk, showing how to cope with a big monitor without straining your neck. This one: http://clive.semmens.org.uk/RISCOS/index.php?Desk2017 And was fascinated by the immediate response, as reported by my website logging for that page:
06:22:49/11/10/2017 192.228.204.232 0 The first two columns are time/date and source IP addresses, the last is a user number – a cookie placed on your machine so I (sometimes) know if someone’s coming back, even if it’s from a different URL, and I (sometimes) know it’s a different user from the same URL. A lot of folks don’t seem to let me set a cookie; doesn’t matter, just gives me less idea about how my site’s being used. One of the most fascinating things to me is where these have come from. I’m not Big Brother, but you can get some kind of insight into how easy Big Brother’s job is becoming. User 9291 may be able to identify themselves (I can’t…perhaps I could but I can’t be bothered to find out how) and may want to delete my cookie…or not bother. They might even like to out themselves for a laugh. (And THEN delete the cookie?) |
Jeffrey Lee (213) 6048 posts |
That’s an IP address, not a URL.
Bear in mind that the first time they visit they won’t have a cookie yet. You’ll be able to send them a cookie, but (depending on the framework you’re using) the cookie you’ve just sent might only become visible to your code once that client makes another request.
Or they could randomise the number you’ve stored in the cookie, confusing your tracking :-) Also, if you’re not asking for the user’s consent before storing your tracking cookie, you’re breaking the law. https://www.out-law.com/page-5486
So now you have to decide between adding an annoying consent message to your site, disabling the cookie code, or risking a random nutjob reporting you to the ICO. |
Clive Semmens (2335) 3276 posts |
D’uh. Brainslip!
Yes, I’m well aware of that. The Zero user numbers may be refuseniks, or they may be first timers. I haven’t bothered to write the software to look back for recent accesses from the same IP address. I wrote the tracking software myself, in PHP – it’s not very sophisticated! Often a user will follow links within the site, and it seems that sometimes the second page they access already sees the cookie, even after less than a second; sometimes it takes several seconds and possibly several pages before the cookie gets returned.
Yes, that’s another possibility I was aware of.
Aaaarrrrghhh! Thank you very much for the heads-up. Will remove the cookie setting – fortunately easy to do, logging and cookies are dealt with in a single file that’s called by all the others. Annoying though, because one certainly can’t assume that multiple accesses from the same IP address are the same user, or that a user will always come from the same IP address. |
Clive Semmens (2335) 3276 posts |
Indeed it’s now done. Logging continues with no cookies and no user numbers. I may reintroduce them later with an explicit consent, but on a page about such issues that people would have to specifically visit – I’m not going to ask every user regardless, so those other users won’t have cookies or user numbers and I won’t get so much information 8~( |
Steve Pampling (1551) 8170 posts |
Vague interest level: the Iceland address doesn’t seem to be currently active otherwise the responding IP’s from that /24 block would probably be a grand total of 10 rather than 9. I wonder how many IP’s ever get used in the frozen north. |
Clive Semmens (2335) 3276 posts |
There have now been 32 accesses to that page today – one since I removed the User Number facility. One IP accessed it twice, all the rest unique. |
Ron (2686) 63 posts |
The one listed as 06:25:33/11/10/2017 095.145.012.045 0 +1 Like the display. Ron |
Clive Semmens (2335) 3276 posts |
Thanks 8~) One like that for each page on my site – and one for each block of IP addresses, showing the pages accessed. There was one for each user, and will be again when I’ve set up a consent system – but that will be No Cookies by default, and you’ll have to deliberately turn them on if you want to. I hope some users will. The times are according to the clock on the server. My site is hosted in Germany… |
Rick Murray (539) 13840 posts |
Also, if you’re not asking for the user’s consent before storing your tracking cookie, you’re breaking the law. Don’t worry too much about it. It’s an idiotic knee-jerk law written by people that don’t understand what cookies actually are and hence has no hope of ever being enforced. How to (almost) do it correctly and annoy the hell out of your users:
How most European-based companies do it:
How the rest of the world does it:
Hahaha! The ICO? You’re kidding right? The ICO… actually I’d like to say they are pointless, worthless, toothless, and useless; but since Brexit that pretty much describes the entire government. If I was to set a cookie on my site (I don’t, I don’t see any need), I absolutely wouldn’t be concerned about the ICO. Another wrinkle – Clive’s site is hosted by Servage Gmbh, Hamburg. While that will still be subject to the cookie law (it’s an EU thing), it quite likely falls under German jurisdiction (assuming America didn’t try to claim that “because internet”). It’s a UK domain with UK content for a UK citizen, but it is physically located in Germany…
I have just visited your site and hit refresh a few times from the IP address 107.167.108.172. This is in Finland, China, or Germany depending on who you ask (I’d say Germany is the most likely), and it is the Opera (Mini) browser when running in data-saving mode – Opera’s server will perform the request, compress the data, then push the compressed (and potentially partially parsed?) content to the browser.
I’m always a first timer on this machine. My policy is set to allow cookies but deny third party cookies; known tracking cookies are faked; and all the rest self-destruct the moment I close the tab.
Three ways to fix this:
As I said above, my site gives the correct time and date for my location because the timezone is set to “Europe/Paris”, but the server is in the UK. It’s the twenty first century. This stuff … isn’t hard… ☺ |
Clive Semmens (2335) 3276 posts |
It’s also not a hard thing to not care about. I know Germany’s times are an hour ahead of ours, and since my users are all over the world it’s entirely arbitrary anyway. I’d slightly prefer it to be monotonic, that is, not subject to clocks changing twice a year, but it really doesn’t bug me a lot.
Now that sounds interesting. Might look into that…for various reasons/purposes…
According to Who Is, it’s Opera Software Americas LLC, San Mateo, CA. I don’t attempt to follow back down chains of proxies – the logging system provided by my hosts does, and seems to be even wilder in its analyses than my simpler version. I take anything from the very big allocations, especially USA ones, with a very large pinch of salt. Some of the others are probably fairly accurate – if Who Is says, “Virgin, Cambridge” or “Virgin, Stevenage” it’s probably true (a couple of known fiends, or myself).
Correct.
Fair enough. I’ve removed the facility for the moment, and it’s coming back shortly all legal and proper but hassling users not at all – and sadly thereby not catching as many of them, only the ones who are positively co-operative. |
Rick Murray (539) 13840 posts |
Hmmm… Ever since posting the DeskLib link here, Google crawls that stuff on my personal server… a lot. I ought to modify WebJames to send an “Expires” header based upon the age of the file, or something. Of more interest are the Romanian hackers bragging about their activities and then trotting out the same tired script-kiddie rubbish that I’ve seen plenty of times before. 218.2.22.147 - - [08/Oct/2017:19:24:30 +0000] "GET /w00tw00t.at.blackhats.romanian.anti-sec:) HTTP/1.1" 400 213 "" "ZmEu" 218.2.22.147 - - [08/Oct/2017:19:24:31 +0000] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 345 "" "ZmEu" 218.2.22.147 - - [08/Oct/2017:19:24:31 +0000] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 404 345 "" "ZmEu" 218.2.22.147 - - [08/Oct/2017:19:24:32 +0000] "GET /pma/scripts/setup.php HTTP/1.1" 404 338 "" "ZmEu" 218.2.22.147 - - [08/Oct/2017:19:24:32 +0000] "GET /myadmin/scripts/setup.php HTTP/1.1" 404 342 "" "ZmEu" 218.2.22.147 - - [08/Oct/2017:19:24:33 +0000] "GET /MyAdmin/scripts/setup.php HTTP/1.1" 404 342 "" "ZmEu" Yawn. I’m not impressed. This stands out for it’s weirdness: 164.52.0.141 - - [04/Oct/2017:15:07:04 +0000] "USER test +iw test :Test Wuz Here" 501 234 "" "" This is all from my Pi server running WebJames. I don’t look at heyrick logs – life is too short… |
Rick Murray (539) 13840 posts |
Let me rummage in my site’s .htaccess to see if there’s anything that might be of use to you. # Set up support for PHP in HTML AddType application/x-httpd-php .html .htm If you want to look for “index.php” as the index page in preference to the usual index.html, but falling back gracefully: # Specify directory index page as index.php, then index.html DirectoryIndex index.php index.html Set the timezone: # Set the timezone to European time SetEnv TZ Europe/Paris php_value date.timezone 'Europe/Paris' Because some really old content tries to link back to an “index.php3” page, fix that: # My ages-old (turn of the millennium) site had index.php3 as the # main index page, fix any equally old pages that link back to it Redirect 301 /index.php3 <a href="http://www.heyrick.co.uk/index.html">http://www.heyrick.co.uk/index.html</a> (redirect should be a full URL; I probably ought to make it https these days) The cute-girl 404: # Jiggle a custom 404 to be the cute-girl one ErrorDocument 404 /errdoc/notfound.html |
Clive Semmens (2335) 3276 posts |
Yeah. Google and Microsoft both crawl my site. They’re welcome, as long as it doesn’t upset Servage. Or someone else is coming via them, I wouldn’t know. Because I don’t host my own site and don’t pay Servage for a detailed log, I don’t get one from them – just some fairly general stats. And I don’t know how to get more information than I’m getting with my PHP, or even whether it’s possible to get much more. Apart from more accurate information about where accesses are coming from, I don’t think I’m terribly interested. Sadly, I don’t really understand your log. |
Rick Murray (539) 13840 posts |
And if you want to set up an easy directory view, like https://www.heyrick.co.uk/random/ then you will want a .htaccess file within that directory that says this: Options +Indexes <Files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all </Files> IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble IndexOrderDefault Ascending Name So I can just drop stuff in /random and the server will build a pretty list automatically. The |
Rick Murray (539) 13840 posts |
Every server generates a log that looks like the ones I posted snippets of above. It’s a standardised format. I can’t believe Servage would expect to be paid extra for something the server does routinely!
The problem with that is that the server just records IP addresses, not locations. There is a piece of software (“analog”) that can break this down, but you may need to pay extra for that.
The first line is bragging. |
Clive Semmens (2335) 3276 posts |
No, they don’t. I can get a log like that. My own logging picks out the bits I want, by IP address, User Number (formerly and futurely), and by page of my site.
Yup. I can get at those. Servage appear to track back locations somehow, but it doesn’t seem to be any more accurate than Who Is, possibly less.
My php does that for me – a bit more than just counting hits. It gives me some clues about what route through my site users take, how they get to particular pages, things like that. |
Steve Pampling (1551) 8170 posts |
Not unusual, even if you’re paying for the “service” 1 Being a confirmed pain in the nether, for their next visit when networks were on the menu, I changed the access on the switches to only respond to my IP and took the day off. |
Rick Murray (539) 13840 posts |
Penetration testing is one thing. I am just amused that some outfit that wants to be thought of as hackers (in the pejorative sense; re “blackhat”) is still using a ~5 year old scanner looking for the same flaws as others have done numerous times in the past (and I have the logs to prove it). The “USER” line? That was new. Not seen that before in the logs.
Shame you couldn’t swing the PHB to refuse payment on… oh, let’s see:
Sadly, the hack scripts are likely to uncover a fair few flaws in the setup, due to what comes down to a mixture of cluelessness and stupidity. There’s a note on the video camera recorder at work telling me what the password it. It’s a numerical phrase known to many British people as meaning “this programme is subtitled”, twice. So I go Google on my break for the make and model of digital video recorder and… yup… it’s the default password. I’d really love to scan open ports on the network at work. I bet there is all kinds of stuff offering telnet (the DVR? the printer?) not to mention open shares and the like. And each machine has open internet access, and the people in charge spend forever and a day yacking to each other on Skype (which now displays some pretty pervy adverts for “singles near you” as you can imagine the French might do it (hint: clothing optional)). I can’t even say “Things would be soooo different if I was their BOFH”, because I know I’m dealing with people that Google the company name in order to get to the company website (as if leaving out the spaces and sticking .fr at the end is SO hard!). |
Clive Semmens (2335) 3276 posts |
Now have 45 accesses to the picture of my desk today, including 4 from Rick, and two others twice each, one pair in rapid succession and the other pair hours apart. And the first one from an IPv6 address! |
Steve Pampling (1551) 8170 posts |
I like to shut the doors before the unwelcome visitors arrive and nick the valuables. |
Andrew Conroy (370) 740 posts |
The pair in rapid succession were probably me – my mouse button can be a bit jittery and sometimes double-clicks so opened the link in two new windows! It pushed me to finally replace the mouse, which I’ve been going to do for weeks! |
John Williams (567) 768 posts |
What I have failed to grasp is: Why cut out the desk rather than remove the foot from the TV? I had a not-unrelated problem with my daughter’s giant TV – I had to move my head from side-to-side constantly to actually follow the action as she had it on the narrow axis of the room. Perhaps it’s because I wear glasses. Mark you, she also had the aspect ratio wrong, and had just got used to people being generally fat! I remember that the reason I couldn’t get on with varifocals was that the depth of field went off towards the edges, making me have to move my head to scan a line of text on a conventional-sized monitor! Bifocals were good enough for my father, and they work fine for me! I returned the varifocals! |
Chris Mahoney (1684) 2165 posts |
And a number of those companies plaster the banner on the screen regardless of whether the customer is in the EU or not. Fortunately I’ve never seen a full blue screen (!) like Slashdot apparently does over there… |
Rick Murray (539) 13840 posts | |
Tristan M. (2946) 1039 posts |
Oh I see me, apparently. This reminds me of something I heard that my ISP told someone. They said that multiple premises share an IP address. All I could say is that has to be rubbish. I mean I know they are terrible, but that would be disastrous. The ony reasons I’m with them is I have a wonderful, deprecated plan which has unlimited data. Also if I were try to change I’d lose my ADSL2+ connection at the exchange and be left in limbo halfsaw between providers because the slot would be taken by someone else before changeover occurs. It’s been full for years, so I’m sticking with it. Big Brother’s job is even easier because they can collect the metadata of all internet activity. Then there’s how police vehicles automatically check the records of the owner of every car they see. The recent plans to add all drivers license photos to facial recognition for public places etc. Then there’s the thing that surprised me most. My council sent me a letter about a water leak. Apparently there has been a low level of 24 hour usage of water for months. So the water meter is smart enough to track and record hourly water usage apparently. This kind of bothers me. |
Pages: 1 2