Git Product home page Git Product logo

iplimiter's Introduction

Stole IP & Store it for Limiting


This Project gets Client IP Per every GET request they send

And Stores their IP for Limiting Them in The Future


Main Page

You can Limit IP in Admin Panel

Now the Client Side Access is Denied

Precedences & Features

  • Admin Panel
  • Database Created by Django ORM
  • Able To Manage Admin Panel
  • Able To Customize Admin Panel
  • Able To Create Super Users Such as Admin
  • Able To Use Any Type of SQL Databases (Current Database is Sqlite3)
  • Backend Security
  • Beautiful UI for Front-end Side

Language used in This Project


WorkSpace


Installation


Download and Extract Ngrok here

Download Ngrok

After this you have to get your NGROK token in their website
You can use the main website of NGROK to get your Auth Token.
Or you can use this document instead.

Open Ngrok's Website and Sign up

You can Sign up or Log in.

After these steps open this page and copy your Auth Token.

Close The Website and go to the Directory that you downloaded NGROK.

First of all Open your CMD or Powershell set your token.

$ ngrok.exe config add-authtoken <token> 

Congratulations. Your all set
Just run the command bellow to use your NGROK Server.

$ ngrok.exe http 8000



Django Configurations

Migrate Database

Just run the commands bellow

$ py manage.py makemigrations
$ py manage.py migrate

Create Super User to Access Admin Panel

$ py manage.py createsuperuser

After this you have to chose username, email and password for your admin

Then you can login with it


Apply These Changes

Replace your Forwarding Link from your Ngrok Terminal in your settings.py file and change these two properties.

ALLOWED_HOSTS = [
    '92ab-151-246-78-89.ngrok-free.app',
]
CSRF_TRUSTED_ORIGINS = [
    'https://92ab-151-246-78-89.ngrok-free.app',
]

Run Your Server

After these steps you have to run your server.

$ py manage.py runserver 8000

Make Sure that your NGROK's http Port is the same with your Django runserver Port.


Open Forwarding Link

Just Open your Forwarding Link.
Thats it.

iplimiter's People

Contributors

shervinbdndev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.