6 ms·
as far as interactive programs for beginners, any reqs?
by burnttoast300 2y ago
as far as interactive programs for beginners, any reqs?
- advael 2y agoGimme a small website with 3 endpoints: website.domain/deep website.domain/wide website.domain/show Both "deep" and "wide" should record a list of every IP address:port combination that hits the URL, as well as a timestamp and a random 2-digit base64 number generated when they hit the site. They should redirect the user to "show" Keep addresses from the "deep" list for 7 days, and the "wide" list for 12 hours, removing them from the list when this time limit runs out On "show", if the current viewer's random number matches someone from the "deep" list, show that entry on the page, with its IP address as well as the timestamp, in red. Whether or not there's a match, show the entire "wide" list, including the IP address, random number, and port, but not the timestamp, and randomize the order in which they're shown. If someone hits "show" and their IP is on neither list, put them on the "deep" list anyway Make this display as aesthetically pleasing as possible. Use any language or framework you like