12 lines
351 B
PHP
Executable File
12 lines
351 B
PHP
Executable File
<?php
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
// Redirect to the secret directory
|
|
header('Location: /secret/one.mp4'); // change to your actual directory path
|
|
exit(); // important! stops further script execution
|
|
} else {
|
|
// If someone tries to GET the script directly, redirect to home
|
|
header('Location: /');
|
|
exit();
|
|
}
|
|
?>
|