How to prevent users from my Django application (with a twist)

I have a Django web application where users gather and chat with each other, under aliases.

Most users who get to this site do this through Opera Mini . Unlike simple web browsers, Opera Mini has a twist that receives all content through a proxy server and reformats the web pages of the pages in a format that is more suitable for small screens.

I want to implement the ban function in this application. Some users terrorize others - if I manually forbid them right now, they simply come back under new nicknames. Please note that these users are not very tech savvy - almost all are no more than semi-educated. My question is thus related:

  • Is IP user prohibition more effective when using a proxy server such as Opera Mini?
  • Is there a Django plugin available that elegantly handles IP blocking?
  • If 1 fails (in which case 2 also fails), is there any other reliable method that I can track to avoid antagonistic users and protect my community?

I have currently given these users a "downvote" function by drowning out accounts whose messages receive too many downvotes. But this practically does not help in fiery wars . The abuser continues to return under new pseudonyms, undermining the entire community. Maybe I should try hellbanning if nothing works?

Note. I am not an advanced programmer (more a designer), so I would prefer quick solutions that have a short time to market for people like me.

+4
source share
1 answer

Opera Mini. Opera X-Forwarded-For, IP- , Django request.META['HTTP_X_FORWARDED_FOR'].

, ( , Opera Mini -):

  • , . , , , IP-. IP- , IP-, /. IP-, -.

  • X-Forwarded-For, , . IP-, . , IP- ( , VPN/Tor node/ ..). , .

  • , , . / - .

+2

Source: https://habr.com/ru/post/1614785/


All Articles