• 3 Posts
  • 7 Comments
Joined 3 months ago
cake
Cake day: October 23rd, 2025

help-circle






  • #solved

    EDIT: 2025-10-25 at 11h29 - I deleted the Content-Security-Policy and PieFed displays images as expected.

    Reasoning

    So after crawling through some very old Reddit posts, I came across other self-hosters discussing their new found interest in Security Headers from 5 years ago (dated, yes). Among the comments was a post by pentesticals (glorious):

    quote

    Don’t stress about security headers and CSP. These are there to help provide additional protection against client-side issues which may or may not be present.

    These will not have any direct impact on your services you expose, rather they aim to be a last resort to protect your browser in case an attacker tries to exploit existing vulnerabilities such as a Cross Site Scripting - but not having these does not increase the risk of your server being compromised.

    Use Nessus Essentials for scanning your services and have fun.

    https://www.reddit.com/r/selfhosted/comments/mpzl8f/any_recommendations_for_security_scans/


    I use Caddy and I can indeed see the security headers that involve CSP. How should this setting be amended?

    For what it’s worth I looked over the “Using Caddy as reverse proxy” for Lemmy, and I notice that they just don’t use the Content-Security-Policy option at all. I’m wondering if I should simply delete this Header for PieFed.

    https://join-lemmy.org/docs/administration/caddy.html

    Security Headers
    (security_headers) {  
      header {  
        Strict-Transport-Security "max-age=31536000; includeSubDomains"  
        X-Content-Type-Options "nosniff"  
        X-Frame-Options "SAMEORIGIN"  
        Referrer-Policy "no-referrer"  
        X-XSS-Protection "1; mode=block"  
        Permissions-Policy "camera=(), microphone=(), geolocation=(), accelerometer=(), autoplay=(), fullscreen=(), gyroscope=(), interest-cohort=(), magnetometer=(), payment=()"  
        -Server  
        -x-powered-by  
      }  
    }  
    

  • Super effective!

    It’s not so much that ads can only sell you something anymore. They’re able to sell your personal details and identity when abused.

    I believe the issue has been written on even prior to the 2025 article from Wired.

    Data brokers are basically form centralized American platforms which carry immense databases about its users. These demographics can essentially be used to target high value targets. These can include government employees, members of military, and other persons of interest.

    These brokers use Mobile IDs to allow advertisers to micro-target people with their habits, browsing fingerprint, and purchase habits. Even if these companies say they don’t associate identities with these Mobile IDs, the brokers can cross-reference enough information to basically de-anonymize a target.

    Plus with influencers these days, many don’t disclose if what they do is sponsored or part of a greater outreach campaign. You’re basically stuck wondering if you’re getting targeted or astroturfed.

    https://www.wired.com/story/google-dv360-banned-audience-segments-national-security/



  • Thank you everyone, for your replies and tips!!

    I haven’t followed PeerTube channels directly from PieFed - yet.

    After just under 24 hours up, so far everything seems to be working just as wjs018 says.

    Thanks Rimu for the Sentry tip.

    I think I’ll just not set the email for errors so as to avoid the logs being sent out.