Add readme.md
This commit is contained in:
commit
4999297970
|
|
@ -0,0 +1,28 @@
|
|||
# Who Visited Me
|
||||
|
||||
- I have another website aside from https://scholastia.xyz
|
||||
- I was curious who visited me, so I logged the IP connections with Caddy, example below.
|
||||
- By visiting, I mean who is crawling websites and hitting my domain name.
|
||||
- Scholastia isn't logged.
|
||||
- The either shows IPs raw or uses the geolocate website to show the location of the IP visits.
|
||||
- Below is the caddyfile code.
|
||||
|
||||
```
|
||||
website.com {
|
||||
root * /path/
|
||||
file_server browse
|
||||
encode gzip
|
||||
basicauth /* {
|
||||
fileshare password
|
||||
}
|
||||
log {
|
||||
output file /path/ip.log {
|
||||
roll_disabled
|
||||
roll_keep_for 2160h
|
||||
roll_size 100GB
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue