<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Add a little bit of security]]></title>
		<link>https://punbb.informer.com/forums/topic/30841/add-a-little-bit-of-security/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/30841/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Add a little bit of security.]]></description>
		<lastBuildDate>Wed, 29 Jun 2022 07:30:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Add a little bit of security]]></title>
			<link>https://punbb.informer.com/forums/post/158826/#p158826</link>
			<description><![CDATA[<p>I&#039;ve added this to my website. Thank you so much!</p>]]></description>
			<author><![CDATA[null@example.com (saadulla89)]]></author>
			<pubDate>Wed, 29 Jun 2022 07:30:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158826/#p158826</guid>
		</item>
		<item>
			<title><![CDATA[Add a little bit of security]]></title>
			<link>https://punbb.informer.com/forums/post/158597/#p158597</link>
			<description><![CDATA[<p>By default, there are no security headers in PunBB.<br />This is how it looks here:<br /><a href="https://ibb.co/1RkST2f"><span class="postimg"><img src="https://i.ibb.co/qmvZp1M/sec3.png" alt="https://i.ibb.co/qmvZp1M/sec3.png" /></span></a><br /><a href="https://ibb.co/WpPWLf2"><span class="postimg"><img src="https://i.ibb.co/k69gtXS/sec4.png" alt="https://i.ibb.co/k69gtXS/sec4.png" /></span></a></p><p>My example additional commands to apache .htaccess file<br /></p><div class="codebox"><pre><code>&lt;ifModule mod_headers.c&gt;
  # Set security headers if missing.
  # (This Content-Security-Policy makes almost no sense (there are many inline scripts and styles on the forum, frames from media sites are allowed).)
  #
  ### Chances are, you will have to customize the permissions for your forum individually. ###
  ### If your Apache version is lower than 2.4.10 then remove all &quot;expr = -z% {resp: ...}&quot; ###
  #
  Header always set Content-Security-Policy &quot;object-src &#039;none&#039;;frame-ancestors &#039;none&#039;;base-uri &#039;none&#039;;form-action &#039;self&#039;&quot; &quot;expr=-z %{resp:Content-Security-Policy}&quot;
  Header always set Feature-Policy &quot;accelerometer &#039;none&#039;;ambient-light-sensor &#039;none&#039;;autoplay &#039;none&#039;;battery &#039;none&#039;;camera &#039;none&#039;;document-domain &#039;self&#039;;fullscreen &#039;self&#039;;geolocation &#039;none&#039;;gyroscope &#039;none&#039;;magnetometer &#039;none&#039;;microphone &#039;none&#039;;midi &#039;none&#039;;payment &#039;none&#039;;picture-in-picture &#039;none&#039;;sync-xhr &#039;self&#039;;usb &#039;none&#039;&quot; &quot;expr=-z %{resp:Feature-Policy}&quot;
  Header always set Referrer-Policy &quot;origin-when-cross-origin&quot; &quot;expr=-z %{resp:Referrer-Policy}&quot;
#  Header set Strict-Transport-Security &quot;max-age=31536000&quot; &quot;expr=-z %{resp:Strict-Transport-Security}&quot;
  Header always set X-Content-Type-Options &quot;nosniff&quot; &quot;expr=-z %{resp:X-Content-Type-Options}&quot;
  Header always set X-Frame-Options &quot;DENY&quot; &quot;expr=-z %{resp:X-Frame-Options}&quot;
  Header always set X-XSS-Protection &quot;1; mode=block&quot; &quot;expr=-z %{resp:X-XSS-Protection}&quot;
  Header always set Permissions-Policy &quot;accelerometer=(),ambient-light-sensor=(),autoplay=(),battery=(),camera=(),document-domain=(self),fullscreen=(self),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),sync-xhr=(self),usb=()&quot; &quot;expr=-z %{resp:Permissions-Policy}&quot;

  # Remove headers containing php information
  Header unset X-Powered-By
  Header always unset X-Powered-By
&lt;/ifModule&gt;

# Hiding information about the system
ServerSignature Off
#ServerTokens ProductOnly # Use only in server config, do not use in .htaccess</code></pre></div><p>It is problematic to establish a normal Content-Security-Policy <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (Visman)]]></author>
			<pubDate>Mon, 11 Jan 2021 12:56:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/158597/#p158597</guid>
		</item>
	</channel>
</rss>
