Search…

X3 Photo Gallery Support Forums

Search…
 
Coolhand
Experienced
Topic Author
Posts: 42
Joined: 15 Apr 2018, 05:31

Fonts and Freegeoip

27 Apr 2018, 10:46

Good Afternoon,

1. as far as I have seen all Fonts are loaded from Google.
Are there any local Fonts - that I don't need to use the google Fonts?
Or is there any way to store them on the own server?

2. I have seen that there is a function - or whatever - called: https://freegeoip.net/json/?callback=ca ... 4839113787
What does it do and why?

Greetings

Mike
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Fonts and Freegeoip

27 Apr 2018, 11:38

Coolhand wrote:1. as far as I have seen all Fonts are loaded from Google.
Are there any local Fonts - that I don't need to use the google Fonts?
If you want to use a local font, just go to settings > Style > font, select [none], and write the local font you want to use.
Image
Coolhand wrote:Or is there any way to store them on the own server?
Store Google fonts on the server? Not sure what the point of that is, unless you are in some location that is struggling to access Google's servers, for example China? I'm sure it is possible, although I wouldn't want to write a tutorial for that unless it was strictly and logically necessary.
Coolhand wrote:2. I have seen that there is a function - or whatever - called: https://freegeoip.net/json/?callback=ca ... 4839113787
What does it do and why?
This isn't from X3. Are you using some 3rd party plugins? Addthis? Something related to Google Map or some iframe solution you have on a page perhaps?

If you have a link to your website, I can check, but this does not come from the X3 application.
 
Coolhand
Experienced
Topic Author
Posts: 42
Joined: 15 Apr 2018, 05:31

Re: Fonts and Freegeoip

27 Apr 2018, 14:58

Thx for the fast answer.

I took a closer look on the freegeoip thing, it looks like it is part of the cookie consent plugin...

- Request 30: https://freegeoip.net/json/?callback=ca ... 4853561947

URL: https://freegeoip.net/json/?callback=ca ... 4853561947
Host: freegeoip.net
IP: 104.25.148.25
Error/Status Code: 200
Priority: LOWEST
Protocol: HTTP/2
HTTP/2 Stream: 1, weight 147, depends on 0
Initiated By: https://cdnjs.cloudflare.com/ajax/libs/ ... ent.min.js line 0 column 14217
Client Port: 34516
Request Start: 2.519 s
DNS Lookup: 205 ms
Initial Connection: 172 ms
Time to First Byte: 332 ms
Content Download: 1 ms
Bytes In (downloaded): 0.6 KB
Uncompressed Size: 0.4 KB
Bytes Out (uploaded): 0.4 KB
Request Headers:
:path: /json/?callback=callback1524853561947
accept-language: en-US,en;q=0.9
accept-encoding: gzip, deflate, br
accept: */*
user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 PTST/180426.220401
:scheme: https
referer: https://www.hobby-fotografie.mobi/
:method: GET
:authority: freegeoip.net
Response Headers:
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-c ... /expect-ct"
status: 200
content-encoding: br
set-cookie: __cfduid=dacc5b940ab09839cd40d0558ec9c477b1524853562; expires=Sat, 27-Apr-19 18:26:02 GMT; path=/; domain=.freegeoip.net; HttpOnly
vary: Origin
server: cloudflare
date: Fri, 27 Apr 2018 18:26:02 GMT
cf-ray: 412355cd9d832774-FRA
content-type: application/javascript
x-database-date: Wed, 04 Apr 2018 07:06:27 GMT


Am I wrong?

Mike
 
Coolhand
Experienced
Topic Author
Posts: 42
Joined: 15 Apr 2018, 05:31

Re: Fonts and Freegeoip

27 Apr 2018, 15:02

I did another test. It is part of the cookie consent plugin and will be used as soon as you activate the option „use location services“...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Fonts and Freegeoip

28 Apr 2018, 01:27

Right, I forgot about the cookie consent plugin. What it does, is get the location (country) of the visitor from their IP. Then the plugin can figure out if it needs to display the cookie notification. The EU cookie law is only required in some EU countries, and therefore you don't need to display it to non-EU visitors. With "use location services" disabled, it cannot resolve location of the visitor, so the cookie plugin would always display.