https://github.com/uzulla/tiny-static-index-html-generator.php
A simple tool to generate an index.html file as a cache.
https://github.com/uzulla/tiny-static-index-html-generator.php
Last synced: about 1 month ago
JSON representation
A simple tool to generate an index.html file as a cache.
- Host: GitHub
- URL: https://github.com/uzulla/tiny-static-index-html-generator.php
- Owner: uzulla
- Created: 2021-04-08T12:11:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T13:22:36.000Z (about 4 years ago)
- Last Synced: 2025-03-15T15:44:29.558Z (about 1 month ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tiny tool for generate static index.html
Save response body to `/abc/index.html` from `http://example.jp/abc` when set `/abc/` in `$path_list`.
Use it when need a small static cache.
## AT FIRST (every time in use)
PLEASE BACKUP YOUR SITE.
## description of files.
- `public_html/staticker.php` main app
- `public_html/index.php` is mock app for testing, not need.## usage
- generate your hashed password by `php -r 'echo password_hash("default_password_1234!", PASSWORD_DEFAULT).PHP_EOL;'`
- edit `staticker.php`
- set `USER_NAME` and `HASHED_PASSWORD`
- set `ALLOW_IP_LIST`
- edit `$path_list`
- put on server document root dir with random file name (ex: `statick_generate_tool_sdfjiafofjeafcac.php`).## lisence
MIT