+1
-1
src/app.html
+1
-1
src/app.html
···
+2
-2
src/components/pet.svelte
+2
-2
src/components/pet.svelte
······
+62
-1
src/hooks.server.ts
+62
-1
src/hooks.server.ts
······
+26
-14
src/lib/visits.ts
+26
-14
src/lib/visits.ts
···// check whether the request is from a bot or not (this doesnt need to be accurate we just want to filter out honest bots)······// check whether the request is from a bot or not (this doesnt need to be accurate we just want to filter out honest bots)······+const host = `(${request.headers.get('host')}|${request.headers.get('x-real-ip')}|${request.headers.get('user-agent')})`;
+7
-25
src/routes/+layout.server.ts
+7
-25
src/routes/+layout.server.ts
·········
+1
-1
src/routes/+page.svelte
+1
-1
src/routes/+page.svelte
···
src/routes/pet/bounce/+server.ts
src/routes/_api/pet/bounce/+server.ts
src/routes/pet/bounce/+server.ts
src/routes/_api/pet/bounce/+server.ts
src/routes/pet/distance/+server.ts
src/routes/_api/pet/distance/+server.ts
src/routes/pet/distance/+server.ts
src/routes/_api/pet/distance/+server.ts
src/routes/pushnotif/+server.ts
src/routes/_api/pushnotif/+server.ts
src/routes/pushnotif/+server.ts
src/routes/_api/pushnotif/+server.ts