/////Koruma.php /////// <?php session_start(); $ref = $_GET['uri']; $_SESSION['ddos_sessionu'] = 1; ?> <html> <head> <meta http-equiv="Content-Language" content="tr"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1254"> <title>Dos Protect</title> </head> <body bgcolor="#000000" link="#FF0000" vlink="#FF0000" alink="#FF0000"> <p align="center"> <p align="center"><b><font color="#FF0000" size="5"> <a href="<?php echo $ref; ?>">Girişi Tamamlamak İçin Tıklayınız >></a></font></b></p> </body> </html> //// Koruma.php ////
yukarıdaki kodu koruma.php olarak kaydediyorum sitenin ana dizinine attığımda localde çalışıyor fakat uzak br sunucudan çektirmem için ne yapmam gereli alttaki kodu da include olarak sitenin bir php dosyasına ekliyorum.
////
<?php
session_start();
if(!$_SESSION['ddos_sessionu']){
$uri = $_SERVER['REQUEST_URI'];
header("location: /koruma.php?uri=$uri");
exit();
}
?>
/////