sveltekit-wphp Svelte Themes

Sveltekit Wphp

A WordPress honeypot to collect data from login attempts

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

:warning: 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

Top categories

Loading Svelte Themes