Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockTorMiddleware

BlockTorMiddleware is a middleware to automatically block users from Tor network. If user enter from Tor network, 404 page will be returned. I urge you to not use this middleware unless you have too. I wrote this middleware due to lot of spamming from Tor network on my website.

Quick start

  1. Go to the root of your django project and download this package:

    git clone https://github.com/Ahmed/django-block-tor.git
    
  2. Install the missing requirement:

    pip install -r requirements.txt
    
  3. Add "BlockTorMiddleware" at the end of MIDDLEWARE_CLASSES setting like this:

    MIDDLEWARE_CLASSES = (
        ...
        'django-block-tor.blocktor.BlockTorMiddleware'
    )
    
  4. That's it ;)

About

BlockTorMiddleware is a middleware to block Tor users from accessing Django based applications.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages