https://github.com/idleberg/sveltekit-wphp
A WordPress honeypot to collect data from login attempts
https://github.com/idleberg/sveltekit-wphp
honeypot sveltekit wordpress wp-admin wp-login
Last synced: about 2 months ago
JSON representation
A WordPress honeypot to collect data from login attempts
- Host: GitHub
- URL: https://github.com/idleberg/sveltekit-wphp
- Owner: idleberg
- License: mit
- Created: 2022-07-13T20:15:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T21:05:52.000Z (almost 3 years ago)
- Last Synced: 2026-02-17T02:38:17.649Z (4 months ago)
- Topics: honeypot, sveltekit, wordpress, wp-admin, wp-login
- Language: Svelte
- Homepage: https://idleberg.github.io/sveltekit-wphp
- Size: 505 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sveltekit-wphp
A SvelteKit template to mock a WordPress login page, useful as a honeypot to monitor login attempts to your site.
## Installation
```sh
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`](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-auto`is 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](LICENSE)