401.html
HTML document, ASCII text
1{% extends "error.html" %} 2 3{% set error = "Unauthorised" %} 4{% set error_code = 401 %} 5 6{% block error_content %} 7{% if request.method != "GET" %} 8<p> 9You must be authenticated to access this. 10And even if you're authenticated, you need to have 11the right permissions, or you'll get 403 Forbidden. How did you even think you could do this 12anonymously?<br> 13<a href="/accounts/">Log in</a> and try this request again. Or just look at this random picture 14the server found for you. Try bribing the subject of it for access, there may be a nonzero chance it 15will let you in.<br> 16What reason do you even have not to <a href="/accounts/">have an account</a>? FYI, we already 17know your IP address, city, browser, OS, device, screen size, ISP (as any website does), and we've 18just logged your terrible attempt at breaking our server (we actually log everything), 19so it's not like you're losing anything by signing up. 20Don't believe us?<br> Aren't you using a <code>{{ user_agent }}</code>? No, we don't run analytics 21and we're not interested in your data. 22</p> 23<div style="padding: 1rem; display: flex; flex-direction: column; align-items: center;"> 24Try our bribe service, in case you've logged in but can't access the resource, putting you in depression: 25<a class="button" href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">Attempt to bribe the cat/dog/flower/rubbish/sun/[insert object here] for access</a> 26(bribe service requires JavaScript, cookies and sending your data to Google, which actually wants it, unlike us) 27</div> 28{% else %} 29<p> 30You must be authenticated to access this. Additionally, if you do authenticate but 31don't have the right permissions, you'll get 403 Forbidden.<br> 32<a href="/accounts/">Log in</a> and try this request again. Or just look at this random picture 33the server found for you. 34</p> 35{% endif %} 36<p> 37<a href="/">Home page</a> 38</p> 39<p> 40<a href="/picture/{{ random_picture.id }}/">Like what you see?</a> 41</p> 42{% endblock %} 43