-
- Downloads
browse: Add rate limit to content views to avoid abuses
It has been observed that some users are scraping the browse content views at a high rate by sending too many requests in a short amount of time. So add a rate limit of sixty requests per minute to content views to avoid such abuse by using the django-ratelimit package. Related to #4795.
Showing
- mypy.ini 3 additions, 0 deletionsmypy.ini
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- swh/web/browse/tests/views/test_content.py 14 additions, 1 deletionswh/web/browse/tests/views/test_content.py
- swh/web/browse/views/content.py 8 additions, 1 deletionswh/web/browse/views/content.py
- swh/web/config.py 1 addition, 0 deletionsswh/web/config.py
- swh/web/settings/common.py 4 additions, 0 deletionsswh/web/settings/common.py
- swh/web/settings/production.py 13 additions, 2 deletionsswh/web/settings/production.py
- swh/web/settings/tests.py 2 additions, 0 deletionsswh/web/settings/tests.py
- swh/web/utils/exc.py 8 additions, 3 deletionsswh/web/utils/exc.py
Loading
Please register or sign in to comment