- Создан шаблон rate_limit.html для отображения предупреждения о превышении лимита запросов - обавлен эндпоинт /limit для отображения страницы с ограничением - еализована проверка частоты запросов с лимитом 10 запросов в час - обавлена обработка превышения лимита для веб и API запросов
23 lines
960 B
HTML
23 lines
960 B
HTML
{% extends "head.html" %}
|
|
|
|
{% block title %}Rate Limit Exceeded{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container-lg py-4">
|
|
<div class="p-5 mb-4 bg-light rounded-3">
|
|
<div class="text-center">
|
|
<i class="fas fa-exclamation-triangle text-warning" style="font-size: 4rem;"></i>
|
|
<h1 class="display-4 mt-3">Rate Limit Exceeded</h1>
|
|
<p class="lead">
|
|
We've noticed that you're using our service very frequently. Such frequent checks are typically associated with business usage, which contradicts our principles of providing free vehicle history checks for individual users.
|
|
</p>
|
|
<p class="lead">
|
|
Please try again later or contact us if you need a business solution.
|
|
</p>
|
|
<div class="mt-4">
|
|
<a href="/" class="btn btn-primary">Return to Homepage</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |