-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50d0368
commit 9a57bee
Showing
10 changed files
with
320 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
defined( 'ABSPATH' ) or die( 'Something went wrong.' ); | ||
|
||
define( 'SECUPRESS_VERSION' , '2.2.5.1' ); | ||
define( 'SECUPRESS_VERSION' , '2.2.5.2' ); | ||
define( 'SECUPRESS_MAJOR_VERSION' , '2.2' ); | ||
define( 'SECUPRESS_PATH' , realpath( dirname( SECUPRESS_FILE ) ) . DIRECTORY_SEPARATOR ); | ||
define( 'SECUPRESS_INC_PATH' , SECUPRESS_PATH . 'free' . DIRECTORY_SEPARATOR ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 61 additions & 7 deletions
68
free/modules/sensitive-data/plugins/inc/php/blackhole/warning-template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,77 @@ | ||
<?php | ||
/** | ||
* SecuPress Template Name: Warning Template | ||
* | ||
* @since 2.2.5.2 Julio Potier | ||
* @since 1.0 Grégory Viguier | ||
* | ||
* @see secupress_blackhole_please_click_me() | ||
*/ | ||
defined( 'SECUPRESS_VERSION' ) or die( 'Something went wrong.' ); | ||
|
||
define( 'DONOTCACHEPAGE', true ); | ||
|
||
$title = __( 'Warning - Deceptive content', 'secupress' ); | ||
|
||
?><!DOCTYPE html> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<meta charset="<?php echo esc_attr( strtolower( get_bloginfo( 'charset' ) ) ); ?>" /> | ||
<title><?php esc_html_e( 'STOP', 'secupress' ); ?></title> | ||
<title><?php echo $title; ?></title> | ||
<meta content="noindex,nofollow" name="robots" /> | ||
<meta content="initial-scale=1.0" name="viewport" /> | ||
</head> | ||
<body> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: sans-serif; | ||
background-color: #C44; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 50vh; | ||
} | ||
|
||
.warning { | ||
text-align: center; | ||
background-color: #fee; | ||
padding: 40px; | ||
border-radius: 12px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | ||
} | ||
|
||
.warning h1 { | ||
color: #db4437; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.warning p { | ||
color: #333; | ||
font-size: 16px; | ||
margin-top: 10px; | ||
line-height: 2em; | ||
} | ||
|
||
blink { | ||
animation: blinker-two 1s linear infinite; | ||
} | ||
@keyframes blinker-two { | ||
100% { opacity: 0; } | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="warning"> | ||
<h1><blink><?php echo $title; ?></blink></h1> | ||
<p><?php | ||
printf( | ||
/** Translators: 1 is a file name, 2 is a "click here" link. */ | ||
__( 'The aim of this page is to catch robots that don’t respect the rules set in the %1$s file. <strong>Don’t %2$s or you will be banned from this site.</strong>', 'secupress' ), | ||
__( 'The purpose of this page is to detect robots that do not adhere to the rules outlined in the %1$s file.<br><strong>%2$s, or you will be banned from this site.</strong>', 'secupress' ), | ||
'<code>robots.txt</code>', | ||
'<a href="' . esc_url( admin_url( 'admin-post.php?action=secupress-ban-me-please' ) ) . '">' . __( 'click this link', 'secupress' ) . '</a>' | ||
'<a href="' . esc_url( wp_nonce_url( '', 'ban_me_please-' . date( 'ymdhi' ), 'token' ) ) . '">' . __( 'DO NOT CLICK THIS LINK', 'secupress' ) . '</a>' | ||
); | ||
?></p> | ||
</body> | ||
</div> | ||
</body> | ||
</html><?php | ||
die(); | ||
die(); |
Binary file not shown.
Oops, something went wrong.