[Tutorial]Protectie site anti flood
Pagina 1 din 1
[Tutorial]Protectie site anti flood
Salut am gasit pe net cv.. protectie pentru siteuri .. este foarte usor...de folosit:)
Intram xampp>htdosc
Cream un fisier flood.php
In el bagam :
Cod:
<?PHP
IF (!ISSET($_SESSION)) {
SESSION_START();
}
// protezione anti flood
IF($_SESSION['last_session_request'] > TIME() - 2){
// chi verrà rilevato a floddare, verrà reindirizzato a flood.html
HEADER("location: /flood.html");
EXIT;
}
$_SESSION['last_session_request'] = TIME();
?>
Acum merem la toate paginile care le avem ) absolut toate:)) ~X( si bagam la inceput
Cod:
<?PHP
require_once "flood.php"
?>
Iar la sfarsit
Cod:
require_once "flood.php"
Astea le bagam la fiecare pagina .. clasament .. download .. in toate fisierele tip txt , php , html din home page
Aucm intram iar in xampp >htdosc si creem un fisier =)) flood.html in el bagam
Cod:
<html>
<head>
<title>Non Floddare</title>
</head>
<body>
<font
type="verdana"
size="5"
color="red"
>
NON FLODDARE <br />
</font>
<font
type="arial"
size="5"
color="green"
>
è stata rilevata un'attività sospetta. Per cortesia, <br />
comportati bene !
</font>
</body>
</html>
Gata ati scapat acum \:d/
Intram xampp>htdosc
Cream un fisier flood.php
In el bagam :
Cod:
<?PHP
IF (!ISSET($_SESSION)) {
SESSION_START();
}
// protezione anti flood
IF($_SESSION['last_session_request'] > TIME() - 2){
// chi verrà rilevato a floddare, verrà reindirizzato a flood.html
HEADER("location: /flood.html");
EXIT;
}
$_SESSION['last_session_request'] = TIME();
?>
Acum merem la toate paginile care le avem ) absolut toate:)) ~X( si bagam la inceput
Cod:
<?PHP
require_once "flood.php"
?>
Iar la sfarsit
Cod:
require_once "flood.php"
Astea le bagam la fiecare pagina .. clasament .. download .. in toate fisierele tip txt , php , html din home page
Aucm intram iar in xampp >htdosc si creem un fisier =)) flood.html in el bagam
Cod:
<html>
<head>
<title>Non Floddare</title>
</head>
<body>
<font
type="verdana"
size="5"
color="red"
>
NON FLODDARE <br />
</font>
<font
type="arial"
size="5"
color="green"
>
è stata rilevata un'attività sospetta. Per cortesia, <br />
comportati bene !
</font>
</body>
</html>
Gata ati scapat acum \:d/
Subiecte similare
» [Tutorial]Un nou scut de la + 0 la + 20
» [Tutorial] New Map "OxiGeNata" By OxiGeN 100%
» [Tutorial]item_proto 100% romana(navicat)
» Tutorial Semnatura [HTML BB Codes
» [TUTORIAL] Cum scapi de yang bug la 2 miliarde
» [Tutorial] New Map "OxiGeNata" By OxiGeN 100%
» [Tutorial]item_proto 100% romana(navicat)
» Tutorial Semnatura [HTML BB Codes
» [TUTORIAL] Cum scapi de yang bug la 2 miliarde
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
|
|