BlockBait is a Chrome extension that helps protect users from phishing attacks by blocking known phishing websites. It is built using Next.js, Tailwind CSS, and Chrome APIs.
To install the BlockBait Chrome extension, follow these steps:
-
Clone the repository:
git clone [repository-url]
-
Install dependencies:
yarn install
-
Build the extension:
yarn build:extension
The
build:extension
script is a custom Node script defined in thepackage.json
file. It runs Next.js build and export commands to generate the static files for the extension. The script also renames the files and replaces certain content to ensure compatibility with the Chrome extension structure. -
Open the Chrome web browser and go to
chrome://extensions
. -
Enable the
Developer mode
toggle switch. -
Click the
Load unpacked
button and select theout
directory. -
The BlockBait extension should now be installed in your Chrome browser.
Once the BlockBait extension is installed, it will automatically block known phishing websites and display notifications to the user. The extension works in the background and provides real-time protection against phishing attacks.
The folder structure of the BlockBait project is as follows:
src
: Contains the source code of the extension.styles
: Includes styling files for the extension.pages
: Contains the main pages of the extension.helpers
: Contains utility functions used in the extension.components
: Contains reusable components used in the extension.
public
: Contains static assets and configuration files.manifest.json
: Configuration file for the Chrome extension.static
: Includes JSON files for blacklist and whitelist data.icons
: Contains icons used by the extension.background
: Includes background scripts for the extension.images
: Contains images used for the extension, including the banner image.
out
: The output directory where the extension is built.
Contributions to the BlockBait project are welcome. If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.
The BlockBait project is licensed under the MIT license. See the LICENSE file for more details.
This project was inspired by the original PhishDetector Chrome extension. Special thanks to the contributors of the PhishDetector project.
If you encounter any issues or have questions about the BlockBait extension, please feel free to contact the project maintainers or open an issue on the repository.