diff --git a/Makefile b/Makefile index 2a250a7..0eea9ca 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,11 @@ fmt : test : @ $(MAKE) --directory=lib/maxmind test +assets/cdn/maxmind/GeoLite2-Country.mmdb : + mkdir -p `dirname $@` + curl -vL "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${MAXMIND_LICENSE_KEY}&suffix=tar.gz" | tar --strip-components 1 -xzv -C `dirname $@` + ls -lAh `dirname $@` + .PHONY : distclean distclean : -@ $(MAKE) --directory=lib/maxmind clean diff --git a/assets/cdn/_headers b/assets/cdn/_headers new file mode 100644 index 0000000..a152284 --- /dev/null +++ b/assets/cdn/_headers @@ -0,0 +1,2 @@ +/* + ! Access-Control-Allow-Origin diff --git a/assets/cdn/_redirects b/assets/cdn/_redirects new file mode 100644 index 0000000..022a3d0 --- /dev/null +++ b/assets/cdn/_redirects @@ -0,0 +1 @@ +/ https://nilfalse.com/ctf/ 301 diff --git a/assets/cdn/index.html b/assets/cdn/index.html new file mode 100644 index 0000000..cbba1ac --- /dev/null +++ b/assets/cdn/index.html @@ -0,0 +1,46 @@ + + + + + Capture The Flag + + + + + + + +
+

Capture The Flag

+
+

+ Redirecting to + nilfalse.com/ctf +

+ + + + diff --git a/assets/cdn/maxmind/COPYRIGHT.txt b/assets/cdn/maxmind/COPYRIGHT.txt new file mode 100644 index 0000000..7fb7920 --- /dev/null +++ b/assets/cdn/maxmind/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2024 MaxMind, Inc. diff --git a/assets/cdn/maxmind/LICENSE.txt b/assets/cdn/maxmind/LICENSE.txt new file mode 100644 index 0000000..ee7434d --- /dev/null +++ b/assets/cdn/maxmind/LICENSE.txt @@ -0,0 +1,3 @@ +Use of this MaxMind product is governed by MaxMind's GeoLite2 End User License Agreement, which can be viewed at https://www.maxmind.com/en/geolite2/eula. + +This database incorporates GeoNames [https://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 4.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/. diff --git a/assets/cdn/robots.txt b/assets/cdn/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/assets/cdn/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /