Skip to content

security: deny Apache web access to temp directory#795

Open
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:security/deny-temp-web-access
Open

security: deny Apache web access to temp directory#795
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:security/deny-temp-web-access

Conversation

@anonymoususer72041
Copy link
Copy Markdown
Contributor

Deny direct HTTP access to the temp directory for Apache deployments by adding a dedicated .htaccess file.

The root .htaccess disables directory indexes and sets security headers, but it does not prevent direct access to known files below temp/. This change mirrors the existing deny-by-default approach used for attachments/ and helps prevent temporary files from being served directly by Apache when AllowOverride is enabled.

The temp/empty placeholder is removed because the new versioned temp/.htaccess file now keeps the temp directory present in the repository. The .gitignore rules are updated so temporary files remain ignored while temp/.htaccess stays tracked.

@anonymoususer72041 anonymoususer72041 added the security Pull requests that address a security vulnerability label Jun 3, 2026
@anonymoususer72041 anonymoususer72041 assigned RussH and unassigned RussH Jun 3, 2026
@anonymoususer72041 anonymoususer72041 requested a review from RussH June 3, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants