Assets

The asset management provides tools for uploading, organizing, and handling files content across your domains, pages, and emails.

Overview

Access global assets through Open Shared Assets to manage resources available across all domains and campaigns.

Select specific domain names from the domains table to manage domain-specific assets that are only available within that particular domain's hosting environment.

Phishing Club - Assets
Assets
Phishing Club - Domain Assets
Domain assets

Asset Priority and Resolution

The asset system implements priority resolution: when assets with identical paths exist in both Shared Assets and domain-specific collections, the system prioritizes domain-specific assets first, falling back to global assets when domain-specific versions are unavailable.

Create new asset

Upload one or more assets and configure which path they are uploaded to. A empty path resolves to the root / of the domain.

Phishing Club - Domain asset upload
Asset upload
Asset
Field Description
Name Optional Identifier for asset. Used for internal reference only, not for asset retrieval or URL generation.
Description
URL Path Path from the domain root where the asset will be accessible.
File Upload Select single or multiple files for upload.

Content type

By default an asset is served with the content type that matches its file extension, for example image/png for a .png file.

To serve it with another type, edit the asset and set Content type. The field shows the type found from the extension as a placeholder. Leave it empty to keep using the type from the extension.

The value must be a type and subtype, such as text/plain or application/pdf, and can include parameters like text/html; charset=utf-8.

Response headers

Each asset can be served with its own response headers. Open the menu on the asset row and select Response headers to add or remove them. Headers are saved as soon as they are added.

Response header
Field Description
Key Header name without the trailing :, for example Cache-Control.
Value Header value, up to 2048 characters.

How headers are sent

  • Custom headers replace any default header with the same name.
  • A name added more than once is sent once per value, for example two Set-Cookie headers.
  • Headers on a shared asset are sent on every domain that serves it.
  • Files without settings are served exactly as before.

Headers that can not be set

These headers control how the response itself is sent and are rejected: Content-Length, Transfer-Encoding, Connection, Keep-Alive, Upgrade, TE, Trailer and Proxy-Connection. Use the content type field instead of a Content-Type header.

Examples

Example headers
Key Value Effect
Content-Disposition attachment; filename="invoice.pdf" The browser downloads the file under the given name instead of showing it.
Cache-Control no-store The browser fetches the file again on every visit.
Access-Control-Allow-Origin * Pages on other domains can load the file with scripts.

Filters

Assets can use the same allow and deny lists as campaigns, so a file is only served to the visitors you choose. Open the menu on the asset row and select Filters. Pick Allow or Deny and select one or more lists. Pick None to remove all lists.

An asset uses either allow lists or deny lists, not both. Filtered assets are marked Filtered in the asset table.

Which lists can be used

  • Shared assets can use global lists.
  • Assets that belong to a company, on its domains or in its asset folder, can use that company's lists and global lists.

What a filtered visitor sees

  • A visitor that does not pass the lists gets the same response as if the file did not exist. A shared file with the same path is not served in its place.
  • Filtered files are sent with Cache-Control: private, no-store so browsers, proxies and CDNs do not store them and hand them to other visitors. A Cache-Control response header set on the asset replaces it.
  • If the filters can not be checked, for example because of a database error, the file is not served.
  • Filters on a shared asset apply on every domain that serves it.

Things to know

  • Deleting a list removes it from the campaigns and assets that use it. An asset with no lists left is served to everyone again.
  • Filters match on the visitor's IP, the same way campaign filters do. When Phishing Club runs behind a proxy or CDN, set ip_security.trusted_proxies so the real visitor IP is used. See Filtering.
  • Header rules can behave differently for files than for pages. Browsers send other headers when loading an image or script than when opening a page.
  • File paths are case sensitive. Run Phishing Club on a case sensitive filesystem, such as Linux, so a request with different letter case can not reach a filtered file.