Files
Kelx/PRE-LOGIN-BOT-HARDENING-PROMPT.md
T
2026-11-30 16:32:37 +00:00

54 lines
3.5 KiB
Markdown

# ADPanel Anti-Discovery Implementation Prompt
Find and implement a built-in, self-hosted way to make routine internet
indexers such as Shodan and other automated probes less able to identify a
public ADPanel installation. The feature is anti-discovery, not a new access
gate. This is an open-source panel: anyone must still be able to reach the
normal sign-in page without an outside account or extra step.
- **No user friction.** Keep the existing login URL and normal browser
experience, including accessibility and password managers. No new CAPTCHA,
proof of work, interstitial, click, artificial delay, or browser, JavaScript,
or cookie requirement. Keep passwords, MFA, account recovery, permissions,
and any already-configured sign-in controls unchanged.
- **No administrator setup.** Make it work by default through supported install
and upgrade paths. No new required settings, credentials, DNS or firewall
changes, manual proxy steps, allowlists, Cloudflare, hosted verification, or
telemetry. Do not replace an operator's custom proxy config; report any
installation paths that cannot gain the protection automatically.
- **Reduce exposed fingerprints in code.** Choose the method after reading the
current request flow. Prefer making routine anonymous probe responses neutral
and removing unnecessary product identifiers over maintaining scanner lists
or guessing from user agents. Consider headers, cookies, default responses,
public assets, favicons, health, and maintenance/error pages across Express,
generated HTTP and HTTPS Nginx, and direct-origin access. Preserve the normal
login, monitoring, certificate renewal, authenticated node integrations, and
cache isolation. Do not weaken authentication or impersonate another product.
- **Be honest about the limit.** A bot that makes the same requests as a real
browser can still identify a public branded login. DNS, TLS, proxy banners,
and past index entries may also identify a deployment. Deliver the strongest
safe reduction within the zero-friction constraints; do not promise that
ADPanel is invisible or that this replaces access control.
Read `AGENTS.md`. Start with the existing behavior in `index.js`,
`utils/stealth.js`, `views/login.ejs`, and `initialize.sh`. Reuse the existing
gate and response paths rather than adding parallel ones. Preserve unrelated
worktree edits. Stay in the repository and disposable loopback-only fixtures.
Do not deploy, run the installer against the host, touch live service settings
or secrets, or probe any public host or search service.
Your task is implementation, not a bug, regression, or security audit. Use
focused local acceptance checks to demonstrate reduced identifying output and
unchanged normal sign-in on the actual app and generated proxy, and run the
repository-required checks. Summarize the method, measured behavior, and limits.
Finish by handing me a separate, copy-ready **Independent Audit Prompt** to
give to a fresh agent. Fill in the actual changed files and diff baseline,
policy and defaults, exact test commands, fixture requirements, results, and
known limits. Tell the reviewer to work read-only in local fixtures, inspect
the diff line by line and trace affected callers and proxy paths, and report
genuine bugs, regressions, or security issues first in severity order with
`file:line` evidence and impact. Explicitly say not to force findings. If
none are supported, say "No issues found" and list unverified checks or
residual risks separately. The reviewer must not fix, deploy, or test public
hosts.