DetecPhis is a chrome extension that uses a random forest algorithm to detect phishing websites. It is a machine learning based approach to detect phishing websites. It uses a random forest algorithm to classify the websites as phishing or legitimate. The extension is built using the python backend and the random forest algorithm is implemented using the scikit-learn library.
- Clone the repository
- Open the terminal and go to the repository folder
- Run the following command to install the dependencies
python -m venv .env
#for windows
.env\Scripts\activate
#for linux
source .env/bin/activate
pip install -r requirements.txt
- Run the following command to start the backend server
python backend/dataset/preprocess.py
python backend/classifier/training.py
- Run the following command to start the python web server for serving the classifier
cd static
python -m http.server 80
- Open the chrome browser and go to chrome://extensions/
- Enable the developer mode
- Click on load unpacked and select the folder containing the extension (frontend folder)
- The extension is now installed
- Open the chrome browser and go to chrome://extensions/
- Click on the extension icon
- The extension will now start running in the background
- Open a new tab and type the url of the website you want to check
- The extension will now check the website and display the result