idleberg / sveltekit-wphp

A WordPress honeypot to collect data from login attempts

Home Page:https://idleberg.github.io/sveltekit-wphp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sveltekit-wphp

A SvelteKit template to mock a WordPress login page, useful as a honeypot to monitor login attempts to your site.

Installation

npx degit idleberg/sveltekit-wphp
cd sveltekit-wphp
pnpm install

⚠️ Alternatively, you can clone the repository rather than using degit and repeat the following steps. However, it's not a recommended practice!

Usage

You will want to edit src/lib/callback.ts according to your needs. By default, it logs to the browser console.

Scripts

Listed below are the most important scripts for developers, but there are more to be found in package.json.

bootstrap

Downloads WordPress and copies required files to the static folder. This runs automatically right after pnpm install.

dev

Starts the development server with hot module reloading

build

Builds the project. By default, the @sveltekit/adapter-autois used. Your project might need a different SvelteKit adapter.

Routes

This template only has routes for the WordPress login page configured: wp-admin and wp-login.php, the former will be used as the default route for both, development server and preview.

License

This work is licensed under The MIT License

About

A WordPress honeypot to collect data from login attempts

https://idleberg.github.io/sveltekit-wphp

License:MIT License


Languages

Language:Svelte 72.2%Language:JavaScript 20.4%Language:HTML 3.8%Language:TypeScript 3.0%Language:Shell 0.6%