I have deployed my project on the internet and applied Django django-ratelimit
to prevent excessive contact form spam. Specifically, I’ve used the following decorator in my contact view:
@ratelimit(key='ip', rate ='1/h', method = 'POST')
In my settings, I have RATELIMIT_ENABLE
, and it functions perfectly during desktop navigation. However, issues arise when attempting to verify its functionality on mobile devices, where it doesn’t seem to work. Any idea why this might be happening? Could it be related to how IPs are managed on mobiles? How can i solve it? Any help would be greatly appreciated.