Skip to main content

Configuration

NSFW Gate is configured at three levels: global options, per-category mode, and per-download flag. The gate fires only when a download evaluates as NSFW after all three are considered.

Per-category mode

Edit a category at AdminCP > [MC] Downloads Manager > Categories and set NSFW gating:

ModeEffect
DisabledDownloads in this category are never treated as NSFW, even if their individual flag is on.
Mark NSFW per downloadThe category itself is neutral. Each download's Mark this download as NSFW flag determines whether the gate applies. This is the default.
Treat every download in this category as NSFWEvery download in the category is gated, regardless of its individual flag.

The mode is stored on the category and respected by all listings, the download view page, feeds, sitemaps, and widgets.

Per-download flag

The download edit form (both AdminCP and the authoring UI) shows Mark this download as NSFW. The flag is consulted only when the parent category's mode is "Mark NSFW per download". When the category mode is "Disabled" or "Treat every download in this category as NSFW", the per-download flag is ignored.

Global options

AdminCP > Setup > Options > [MC] Downloads Manager: NSFW Gate.

SettingDefaultWhat it does
Permitted user groups(none — all members)If one or more user groups are selected, only members of those groups can pass the gate. Members not in any selected group are blocked with the "Your account is not in a user group that can view NSFW content" message. Leave empty to allow any registered user.
Guest viewing behaviourPlaceholderDetermines how guests interact with NSFW items. See guest behaviour below for the four modes.
Confirmation prompt typeCheckboxEither a simple "I am of age" checkbox or a date-of-birth challenge that compares against the Minimum age option.
Minimum age18Required age in years when Confirmation prompt type is set to date of birth. Range 16–99. Ignored when the prompt is a checkbox.
Default NSFW thumbnail(eye-slash icon)Replacement image shown in place of the standard download icon when an item is hidden behind the gate. Square images up to 1024×1024 are recommended.
Exclude NSFW items from feeds and widgetsOnRemoves NSFW items from RSS feeds, sitemaps, and homepage or sidebar widgets. Recommended — feeds and sitemaps are publicly cached and indexed by search engines and would otherwise bypass the gate.

Guest behaviour

The Guest viewing behaviour option has four modes:

ModeWhat guests see
BlockGuests are denied access entirely. The gate returns a "must be logged in" message. NSFW items still appear in listings as gated stubs but cannot be opened.
Placeholder (default)Guests see a stub on the download page and can confirm via the standard prompt. The confirmation is stored as a cookie (mc_nsfwgate_confirmed) on their browser.
Cookie onlyGuests see the full content only when the confirmation cookie is already present. Without the cookie, the gate challenges. There is no in-page confirmation flow — the cookie must be set by another means (typically a prior site-wide age gate).
HideNSFW items are removed from listings for guests altogether. Direct URLs return the gate's standard "not available" response.

Authenticated members are not affected by this option. Their pass/fail is determined by the Permitted user groups option and their personal confirmation status.

Member-level preference

Members can opt to hide NSFW downloads from their own listings under their account preferences (Hide NSFW downloads). This is independent of the gate — confirmed members still see NSFW items by default; checking this preference filters them out of overviews and category pages.

Reference

  • All NSFW Gate options (alphabetical):
    • Confirmation prompt typemcNSFWGateForDM_promptMode
    • Default NSFW thumbnailmcNSFWGateForDM_defaultThumbnail
    • Exclude NSFW items from feeds and widgetsmcNSFWGateForDM_excludeFromFeeds
    • Guest viewing behaviourmcNSFWGateForDM_guestBehavior
    • Minimum agemcNSFWGateForDM_minimumAge
    • Permitted user groupsmcNSFWGateForDM_requiredUserGroups