����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
class Redirection_Request {
public static function get_request_headers() {
$ignore = apply_filters( 'redirection_request_headers_ignore', [
'cookie',
'host',
] );
$headers = [];
foreach ( $_SERVER as $name => $value ) {
if ( substr( $name, 0, 5 ) === 'HTTP_' ) {
$name = strtolower( substr( $name, 5 ) );
$name = str_replace( '_', ' ', $name );
$name = ucwords( $name );
$name = str_replace( ' ', '-', $name );
if ( ! in_array( strtolower( $name ), $ignore, true ) ) {
$headers[ $name ] = $value;
}
}
}
return apply_filters( 'redirection_request_headers', $headers );
}
public static function get_request_method() {
$method = '';
if ( isset( $_SERVER['REQUEST_METHOD'] ) ) {
$method = $_SERVER['REQUEST_METHOD'];
}
return apply_filters( 'redirection_request_method', $method );
}
/**
* Get the server name (from $_SERVER['SERVER_NAME]), or use the request name ($_SERVER['HTTP_HOST']) if not present
*
* @return string
*/
public static function get_server_name() {
$host = self::get_request_server_name();
if ( isset( $_SERVER['SERVER_NAME'] ) ) {
$host = $_SERVER['SERVER_NAME'];
}
return apply_filters( 'redirection_request_server', $host );
}
/**
* Get the request server name (from $_SERVER['HTTP_HOST])
*
* @return string
*/
public static function get_request_server_name() {
$host = '';
if ( isset( $_SERVER['HTTP_HOST'] ) ) {
$host = $_SERVER['HTTP_HOST'];
}
return apply_filters( 'redirection_request_server_host', $host );
}
public static function get_server() {
return self::get_protocol() . '://' . self::get_server_name();
}
public static function get_protocol() {
return is_ssl() ? 'https' : 'http';
}
public static function get_request_url() {
$url = '';
if ( isset( $_SERVER['REQUEST_URI'] ) ) {
$url = $_SERVER['REQUEST_URI'];
}
return apply_filters( 'redirection_request_url', stripslashes( $url ) );
}
public static function get_user_agent() {
$agent = '';
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
$agent = $_SERVER['HTTP_USER_AGENT'];
}
return apply_filters( 'redirection_request_agent', $agent );
}
public static function get_referrer() {
$referrer = '';
if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
$referrer = $_SERVER['HTTP_REFERER'];
}
return apply_filters( 'redirection_request_referrer', $referrer );
}
public static function get_ip_headers() {
return [
'HTTP_CF_CONNECTING_IP',
'HTTP_CLIENT_IP',
'HTTP_X_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_X_CLUSTER_CLIENT_IP',
'HTTP_FORWARDED_FOR',
'HTTP_FORWARDED',
'HTTP_VIA',
'REMOTE_ADDR',
];
}
public static function get_ip() {
$ip = '';
foreach ( self::get_ip_headers() as $var ) {
if ( ! empty( $_SERVER[ $var ] ) ) {
$ip = $_SERVER[ $var ];
$ip = explode( ',', $ip );
$ip = array_shift( $ip );
break;
}
}
// Convert to binary
// phpcs:ignore
$ip = @inet_pton( trim( $ip ) );
if ( $ip !== false ) {
// phpcs:ignore
$ip = @inet_ntop( $ip ); // Convert back to string
}
return apply_filters( 'redirection_request_ip', $ip ? $ip : '' );
}
public static function get_cookie( $cookie ) {
if ( isset( $_COOKIE[ $cookie ] ) ) {
return apply_filters( 'redirection_request_cookie', $_COOKIE[ $cookie ], $cookie );
}
return false;
}
public static function get_header( $name ) {
$name = 'HTTP_' . strtoupper( $name );
$name = str_replace( '-', '_', $name );
if ( isset( $_SERVER[ $name ] ) ) {
return apply_filters( 'redirection_request_header', $_SERVER[ $name ], $name );
}
return false;
}
public static function get_accept_language() {
if ( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) {
$languages = preg_replace( '/;.*$/', '', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
$languages = str_replace( ' ', '', $languages );
return apply_filters( 'redirection_request_accept_language', explode( ',', $languages ) );
}
return [];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| log | Folder | 0755 |
|
|
| redirect | Folder | 0755 |
|
|
| url | Folder | 0755 |
|
|
| action.php | File | 2.3 KB | 0644 |
|
| canonical.php | File | 4.35 KB | 0644 |
|
| file-io.php | File | 3.18 KB | 0644 |
|
| fixer.php | File | 5.34 KB | 0644 |
|
| flusher.php | File | 1.98 KB | 0644 |
|
| group.php | File | 9.6 KB | 0644 |
|
| header.php | File | 3.35 KB | 0644 |
|
| htaccess.php | File | 11.29 KB | 0644 |
|
| importer.php | File | 11.35 KB | 0644 |
|
| match.php | File | 4.08 KB | 0644 |
|
| module.php | File | 3.04 KB | 0644 |
|
| monitor.php | File | 4.38 KB | 0644 |
|
| permalinks.php | File | 3.66 KB | 0644 |
|
| regex.php | File | 1.79 KB | 0644 |
|
| request.php | File | 3.92 KB | 0644 |
|