GitXplorerGitXplorer
a

university

public
16 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
046bc025c3ccb30f7aff8a2e9e2a5e387a12ba01

backend usage header

aaadibajpai committed 4 years ago
Verified
145a90337dfa09883b2be7e0dbf572a53564f7ee

add sauce

aaadibajpai committed 4 years ago
Verified
b01b901b4d225efd1eca8310900db12c053fb61a

cloudflare rate limit reset

aaadibajpai committed 4 years ago
Verified
4114bf387d7b48f108ebe061d27cc13f6563d442

Update docs

aaadibajpai committed 4 years ago
Verified
7adbf72d2ac9c678943f2522415f5a95f6cef4a0

Cloudflare rate limit exceeded how

aaadibajpai committed 4 years ago
Verified
e212d7539ae6e11ceeb16f6082ac83580a68e408

adjust permalink to example

aaadibajpai committed 4 years ago

README

The README file for this repository.

university request detection proof of concept

proof of concept

find catchier title maybe

should detect university if you visit this from a university

imagine if I had this last year during college application szn

API

URL: https://uni.aadibajpai.workers.dev

status code 200 with university name as text body if found.

Else, 404 not found

Eg. {status: 200, "Columbia University"} or {status: 404, "not found"}

No rate limits or anything, go wild. Okay, Cloudflare Workers have a limit of 100,000 requests a day so maybe keep that into account.

For requests made through a backend, you can pass the IP address in a x-lookup-ip header.

API source code: https://github.com/aadibajpai/university-worker

Example Usage

See index.html

I set it up for my website too as a possible implementation to slightly modify text if a university visitor is detected.

Look at that here.

Why?

I thought about this last year while doing college applications. Was easier to implement than I expected and fun. I think it has potential.

Isn't this overkill?

no u


Thanks to my friend Nisala for help with making and testing this <3