mirror of
https://github.com/kaboomserver/website.git
synced 2024-12-22 15:55:04 +00:00
Don't send reports
This commit is contained in:
parent
ddd1773ebe
commit
19d244c081
2 changed files with 1 additions and 18 deletions
|
@ -16,7 +16,7 @@ SetHandler cgi-script
|
|||
</FilesMatch>
|
||||
|
||||
<FilesMatch ".(htm|html)$">
|
||||
Header set Content-Security-Policy "default-src 'none'; font-src data:; form-action 'self'; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests; report-uri /report"
|
||||
Header set Content-Security-Policy "default-src 'none'; font-src data:; form-action 'self'; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests"
|
||||
Header set X-Frame-Options "DENY"
|
||||
Header set X-Xss-Protection "1; mode=block"
|
||||
</FilesMatch>
|
||||
|
|
17
report
17
report
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
use CGI;
|
||||
my $q = new CGI;
|
||||
|
||||
my $data = CGI::param('POSTDATA');
|
||||
|
||||
if (($data ne ""))
|
||||
{
|
||||
open (SEND, "|/usr/lib/sendmail -t");
|
||||
print SEND "From: mail\@mathias.re\n";
|
||||
print SEND "To: mail\@mathias.re\n";
|
||||
print SEND "Subject: CSP Report\n\n";
|
||||
print SEND "$data\n";
|
||||
close (SEND);
|
||||
}
|
||||
|
||||
print $q->redirect('/');
|
Loading…
Reference in a new issue