Skip to main content

#240 NorrCompetition: Hide submitted entries from guests while allowing guest submissions

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

Joomla version:
6.2.0
PHP version
8.4.27
NorrCompetition version
3.0.3

Latest post by sulpher on Thursday, 29 October 2026 15:23 EET

hodihelga

Hello,

We are using NorrCompetition for a photo competition on our website, https://photocontest.abds.is/ (Arctic Biodiversity "Through the Lens" Photography Competition, run by CAFF).

We would like to configure the following:

1. Everyone, including guests (non-registered users), must be able to submit entries to the contests via the submission form.
2. Submitted entries (photos) should NOT be visible to the public. Only logged-in users (e.g. judges and administrators) should be able to view them on the front end.

Our questions:

- Is there a built-in setting in NorrCompetition (component options, contest settings or permissions/ACL) that allows entries to be hidden from guests while still allowing guests to submit?
- If we set the access level of the menu items for the contest list and contest views to "Registered", can the entries still be reached through direct URLs? If so, what is the recommended way to prevent this?
- Would a template override of the contest and entry views be a reasonable solution, and which view/layout files should we override?
- Are the uploaded image files themselves accessible via direct URL by anyone who knows the path? Is there a way to protect the image folder so that only logged-in users can view the files?
- Do the NorrCompetition modules (e.g. Entries module or Grid) respect the same restrictions, or do they need to be configured separately?

Our setup:
- Joomla version: [6.2.0]
- NorrCompetition version: [3.0.3]
- PHP version: [8.4.27]

The competition is open from 1. November 2026 for submissions until 30 November 2026, so we would be very grateful for a reply at your earliest convenience.

Thank you in advance for your help.

Best regards,
Hólmgrímur
CAFF Data Manager
hoddi@caff.is

b2z

Hello Hólmgrímur!

1. Are uploaded image files accessible via direct URL? Can the folder be protected for logged-in users only?

  • Can anyone guess or browse the files?
    No. Even though the folder structure follows predictable IDs (/images/ncuploads/{competition_id}/{entry_id}/), unauthorized discovery is prevented:

    • Randomized File Names: NorrCompetition generates hashed/randomized file names for all uploads (e.g., big_d8a4f91c7...jpg). They cannot be guessed or brute-forced.
    • Directory Browsing is Blocked: Joomla’s default .htaccess includes Options -Indexes (and Nginx disables autoindex by default). Accessing any upload folder directly returns a 403 Forbidden error instead of listing files.
  • Can files be opened via direct URL?
    As with all static media in Joomla (and web servers in general), files are served directly by Apache/Nginx from the filesystem for performance. However, because filenames are randomized and folders cannot be listed, the only way someone can obtain a direct link is if a logged-in user with legitimate access inspects the page source and copies the URL. Once an authorized user's browser renders an image, the asset URL is inherently exposed to their browser session.

  • Can the folder be restricted via .htaccess?
    Simply placing Deny from all inside the upload folder will not work. Web browsers request images via separate HTTP requests, and web servers do not check Joomla sessions for static files. Doing this would break image display (403 Forbidden) for everyone, including logged-in users.

  • Advanced Server-Level Protection (if strictly required):
    If your project requires strict zero-trust access (so that direct links stop working as soon as a user logs out) you can try to set web server session verification: Configure Nginx (via auth_request or checking Joomla's session cookie) to verify an active user session before serving files from /images/ncuploads/.


2. If menu items are set to "Registered", can entries still be reached via direct URLs?

Yes, if the Contest itself is still set to "Public".

In Joomla, setting an Access Level on a menu item only protects that specific menu link/route. If the contest or category is still configured as Public, entries could still technically be reached via direct/raw URLs (e.g., index.php?option=com_competition&view=participant&id=...).

Recommended solution: Set the Access Level directly on the Contest (in Contest settings) or on its parent Category to "Registered":

  • NorrCompetition’s entry model enforces contest and category access levels directly in its database query.
  • Once the Contest is set to Registered, all direct URLs to its entries will be completely blocked for guests.

3. Do NorrCompetition modules (Entries & Grid) respect these restrictions?

Yes, absolutely.

Both the Entries Module and the Grid Module automatically enforce Joomla's View Access Levels at the database level:

  • They strictly filter entries based on the current user's authorized view levels against the Contest and Category access (c.access IN (authorisedViewLevels)).
  • If a competition is set to Registered, an unauthenticated visitor will never see its entries in the modules, even if the module is placed on an otherwise public page (Note: Modules inherit the access level of the Contest/Category, not menu items).
  • Module container visibility: If you also want to hide the module block itself (title, wrapper container) from unauthenticated visitors, set the module's own Access Level in the Joomla Module Manager to Registered.

Please let us know if you have any further questions or need additional assistance!

Kind regards,
Dmitrijs

 

hodihelga

Thanks. 

That anwear all my questions,  thanks

Hóddi

b2z

Great!

Should you still experience problems, please open a new support thread.

If you are happy with our support, we would be grateful if you took the time for a small review or just a vote on Trustpilot.
https://www.trustpilot.com/review/norrnext.com

Or leave a review about our extension at the JED.
https://extensions.joomla.org/extension/clients-a-communities/ratings-a-reviews/norrcompetition

Kind regards,
Dmitrijs

sulpher

Hi Hólmgrimur,

Thank you for your questions. We are glad the contest is almost ready to run.

>Everyone, including guests (non-registered users), must be able to submit entries to the contests via the submission form.

Please see the following tutorial:

Submitting Entries by Unregistered Users

>Submitted entries (photos) should NOT be visible to the public.

Yes, there is such a feature :-) 

Open this announcement:

https://norrnext.com/blog/norrcompetition-1-7-discovering-new-features

And find this one:

7. Hide entries before the voting has started

 

 

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.