Skip to content

Website access and logs ​

Each website's Manage page has tabs for blocking visitors, protecting folders, and reading logs. This page covers the Access & MIME, Protection & listing, and Logs tabs. The General tab (domains and settings) is described in Websites.

To open them, click Manage on a website row on the Website page, then pick a tab. Changes are only possible while the website is Active. Each saved change is applied to the web server in the background.

IP Blocker ​

On the Access & MIME tab, the IP Blocker & hotlink protection panel blocks visitors by address.

  1. Enter one address or range per line in Blocked addresses: an IPv4/IPv6 address (e.g. 203.0.113.7) or a CIDR range (e.g. 203.0.113.0/24). At most 200.
  2. Click Save access settings.

Visitors from those addresses get 403 Forbidden on every domain of this website.

Behind Cloudflare

When the website runs behind the Cloudflare proxy, the server sees Cloudflare's address instead of the visitor's, unless real-IP forwarding is set up. Block such visitors in Cloudflare instead.

Hotlink protection stops other sites from embedding your images, video, or audio and using your bandwidth.

  1. Tick Turn on hotlink protection.
  2. Check Protected file extensions, separated by commas. The default list is jpg, jpeg, png, gif, webp, avif, bmp, svg, mp4, webm, and mp3.
  3. Optional: in Other allowed domains, enter one domain per line that may embed your files, e.g. your CDN or marketplace store. Their subdomains are allowed too.
  4. Optional: tick Also block requests without a referrer (opening the file directly).
  5. Click Save access settings.

The files can still be loaded from pages on the website's own domains, the allowed domains, and the subdomains of both. Other sites get 403.

WARNING

Some browsers, apps, and privacy tools never send a referrer. If you also block requests without a referrer, those visitors will not see the files.

MIME types ​

The MIME types panel sets the Content-Type that browsers receive for a file extension on this website, like MIME Types in cPanel.

  1. In Extra MIME types, enter one extension and type per line, e.g. glb model/gltf-binary.
  2. Click Save MIME types.

Rules:

  • At most 50 entries.
  • The type must be type/subtype, without parameters.
  • Types that would run files as scripts (e.g. PHP or CGI types) are refused.

Directory privacy ​

On the Protection & listing tab, the Directory privacy & leech protection panel asks for a username and password before a folder is shown. Protection made in cPanel and migrated to the panel keeps working.

  1. Click Protect a directory.
  2. Enter the Directory relative to the document root, e.g. admin or members/files. Empty protects the whole site.
  3. Enter the Realm (shown in the login prompt), e.g. Restricted.
  4. Add users: a Username and a Password of at least 8 characters. Use Add user for more.
  5. Click Save.

The list shows each protected Directory, its Users, the Leech protection state, and the Source: Panel, or Migrated / manual for protection from a migration or a manual .htaccess edit.

  • Edit: users without a new password keep their current password (unchanged). Users removed from the list lose access. Saving a Migrated / manual protection keeps existing passwords and moves it to the panel-managed block.
  • Remove: removes the password protection from the folder.

Leech protection ​

Leech protection detects a username used from too many IP addresses within two hours. That usually means its password was shared or leaked. The access log is checked every few minutes.

  1. Click Leech on a protected directory row.

  2. Tick Enable leech protection.

  3. Set Maximum IP addresses per user in 2 hours, from 1 to 1000. IPv6 addresses in the same /64 count once.

  4. Choose what happens when the limit is passed:

    • Disable the user when the limit is passed;
    • Email the account contact.

    With neither ticked, detections are only listed.

  5. Click Save.

The dialog lists Recent detections. A disabled user is struck through in the protection dialog and in the list ("Disabled: give it a new password to enable it again"). They get 401 until you give them a new password with Edit. Saving without a new password keeps them disabled.

INFO

Leech protection has no redirect URL: a disabled user simply cannot sign in. The rules stay on the current server; if your account is moved to another server, set them up again.

Directory listing (Index Manager) ​

When a folder has no index page (such as index.html or index.php), the visitor sees either a list of its files or an error. Listing is off everywhere by default. The Directory listing (Indexes) panel changes that per folder.

  1. Enter the Folder relative to the document root, e.g. downloads. Empty means the whole site.
  2. Choose the Listing: Show file list or Hide file list.
  3. Click Set.

A setting also applies to the folders below it, unless a lower folder has its own setting. The table shows each folder, its Listing, and the Source: Panel, or .htaccess (manual) for an Options line you wrote yourself.

  • Show / Hide switches the folder.
  • Reset removes the panel's setting, so the folder follows its parent folder again.

Folders up to 4 levels below the document root can be set.

Logs ​

The Logs tab, Logs (errors & raw access), shows the latest lines of the website's logs.

OptionWhat it does
Log fileThe web server's access and error logs, and PHP errors. The choice depends on your server's web server, with the file size.
LinesThe last 100 to 2000 lines.
FilterOnly lines that contain this text.
RefreshReads the log again.

Web server logs are rotated daily and kept for 35 days. The PHP error log is your ~/logs/php-error.log file and counts toward your disk quota.

To download a whole log:

  1. Choose the Log file.
  2. Under Download raw log, choose the Day: Current (today's log, with its size) or an earlier date. Older days are usually compressed (.gz).
  3. Click Download.

TIP

A log is empty until the website receives its first request: the tab then shows "No logs yet. They appear after the first request."

Who can change these settings ​

Panel users (sub-accounts) and API tokens with only read access to Websites, PHP & apps can see these tabs and download logs, but cannot change anything. See Panel users.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.