Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ FlashPaper will try to generate the secret retrieval URL based on information pr
- `true`: The setting `site_title` will be displayed at the top of the page. If `display_logo` is enabled, the text will appear to the right of the logo.
- `false`: The setting `site_title` will not be displayed.

### `noindex, nofollow`:
- `true`: Is setting the metadata section for `noindex` or `nofollow`. Google bots should not index your page or follow links
- `false`: Google bots could index your page or follow links

## Donations

PayPal: https://paypal.me/AndrewPaglusch
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
SITE_LOGO: "img/logo.svg"
DISPLAY_LOGO: "true"
DISPLAY_TITLE: "false"
NOINDEX: "true"
NOFOLLOW: "true"
RETURN_FULL_URL: "true"
BASE_URL: "" # https://mydomain.com/flashpaper
MAX_SECRET_LENGTH: "3000"
Expand Down
2 changes: 2 additions & 0 deletions docker/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"site_logo" => getenv('SITE_LOGO') ?: "img/logo.svg",
"display_logo" => filter_var(getenv('DISPLAY_LOGO') ?: "true", FILTER_VALIDATE_BOOLEAN),
"display_title" => filter_var(getenv('DISPLAY_TITLE') ?: "false", FILTER_VALIDATE_BOOLEAN),
"noindex" => filter_var(getenv('NOINDEX') ?: "false", FILTER_VALIDATE_BOOLEAN),
"nofollow" => filter_var(getenv('NOFOLLOW') ?: "false", FILTER_VALIDATE_BOOLEAN),
"custom_css" => filter_var(getenv('CUSTOM_CSS') ?: "false", FILTER_VALIDATE_BOOLEAN),
"bootstrap_theme" => getenv('BOOTSTRAP_THEME') ?: "flashpaper",
"return_full_url" => filter_var(getenv('RETURN_FULL_URL') ?: "true", FILTER_VALIDATE_BOOLEAN),
Expand Down
10 changes: 10 additions & 0 deletions html/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
<!-- Meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php
if ( $settings['noindex'] == 'true') {
echo '<meta name="robots" content="noindex">'
}
?>
<?php
if ( $settings['nofollow'] == 'true') {
echo '<meta name="robots" content="nofollow">'
}
?>
<!-- Font Awesome CSS -->
<link rel="stylesheet" href="./css/fontawesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="./css/solid.min.css" rel="stylesheet" />
Expand Down
4 changes: 3 additions & 1 deletion settings.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
'site_title' => 'FlashPaper :: Self-Destructing Message',
'site_logo' => 'img/logo.svg',
'display_logo' => 'true', # true/false
'display_title' => 'false', # true/false
'display_title' => 'false', # true/false
'noindex' => 'true', # true/false
'nofollow' => 'true', # true/false
'return_full_url' => true,
'base_url' => '', # https://mydomain.com/flashpaper
'max_secret_length' => 3000,
Expand Down