IP- und Reloadsperre

Vorteile:

1. benötigt kein MySQL, denn es basiert auf Textdateien
2. absolut flexibel und in jedem eigenen Script einsetzbar
3. einfach zu integrieren per PHP-Befehl include
4. Schon fertig!

Was macht dieses Script?

1. Das IP- und Reloadsperre Script speichert die IP und die aktuelle Zeit des Benutzers wenn dieses Script aufgerufen wird.
2. Diese Werte werden in der Datei "ipsperre.txt" gespeichert.
3. Damit die Dateigröße von ipsperre.txt nicht zu groß wird, werden IP und Zeit des Benutzers nach bestimmter Zeit (im Script einstellbar) wieder gelöscht.

Wie verwende man dieses Script?

Durch die Variable "$ip_vorhanden". $ip_vorhanden kann die Werte "0" oder "1" annehmen. Dadurch kann in eigenem Script durch eine einfache if-Anweisung abgefragt werden, ob die IP vorhanden ist oder nicht.

Rezensionen

Es sind noch keine Kommentare vorhanden.

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
ANG GES G P
Tip des Tages Script Funktionsweise des Scriptes: • Jeder Besucher kann Tipps des Tages abgeben oder selbst für seine Seite werben • Prinzip ...
ANG GES G P
Ein ausführliches aber trotzdem nicht zu langes Tutorial was Smarty betrifft. Im Tutorial ist folgendes zu finden. * Download * Installation ...
ANG GES G P
No doubt you've all seen on Google's search page where it tells you how long your search took to complete. This, and some talk I noticed a while b ...
ANG GES G P
There's a ton of mailing list software out there that one can install on a system, and there are other, more cohesive sets of scripts that you can ...
ANG GES G P
This document describes how to display safely formatted output from user input. We will discuss the dangers of displaying unfiltered output and th ...
ANG GES G P
Let's face it, web pages aren't designed for interaction with users. At one time or another, you've probably found yourself needing to know what u ...
ANG GES G P
When I started seeing spam messages posted to the new column annotation system, I knew I would have to create some sort of user authentication sys ...
ANG GES G P
This article is aimed at answering one of the most asked questions on the PHP mailing list and discussion forums alike: How to store binary files ...
275 x angesehen
0 x gemerkt
Details zur Anzeige
ANG GES G P
Anfrage stellen

Du bist nicht als Benutzer angemeldet. Bitte gebe Deinen Namen und E-Mailadresse an!

Wird geladen... Bitte warte.
Details zur Anbieter