decoy

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package decoy serves an innocent-looking website ("заглушка") for every request that doesn't carry the secret panel path. The goal: a visitor, DPI, or scanner sees an ordinary site, never a hint that a VPN panel exists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() ([]string, error)

Available returns the list of bundled template slugs.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves a single decoy template.

func New

func New(template string) (*Handler, error)

New returns a decoy handler for the given template slug.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves the requested asset, falling back to the template's 404.html (with a 404 status) for anything not found — so misses are indistinguishable from a normal site's not-found page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL