A simple class to generate simple .htaccess files
A simple class to generate very simple .htaccess files. It can take an list of IPs or UserAgents to block and create a .htaccess that blockes based on that.
Located in /htaccessblockmaker.lib.php (line 31)
Newline (default to \n)
The current error code
Error code:
The name of the file to load
List of Misc options to block
List of Misc strings
List of IPs to block
String to use for IP blocking
The string to use to block an IP. Defaults to "deny from REPLACE".
List of User-Agents to block
String to use for User-Agent blocking
The string to use to block UserAgent. Defaults to "SetEnvIfNoCase REPLACE bad_item". Should not be changed.
Has the specified file been loaded?
Has definitions been updated?
Creates a new htaccessBlockMaker
Creates a new htaccessBlockMaker. No need to call this manually - it is called when you make it.
Adds a new IP to the IP List
Adds a new IP to the IP list.
Gets a custom list
Gets a custom list with the specified index.
Gets the custom definition
Gets a custom definition based on a index
Gets the IP definition
Gets the definition of the IP blocking. Default is "deny from REPLACE".
Gets the IP banlist
Gets the IP banlist (array).
Gets the useragent def
Gets the definition for the User Agent
Gets the UserAgent banlist
Gets the User Agent banlist in array form.
Loads a file
Loads a datafile. If the file is not supplied, it is overridden by the filestring variable, set through set_file.
Loads a file
Alias of loadfile.
Process the file
Processes the file into a .htaccess.
Resets the error code
Resets the error code back to zero.
Saves a file
Saves the file.
Sets a custom list
Sets the specified index's list
Sets the file to load
Sets the name of the file to load.
Sets the IP banlist
Sets the IP banlist (array).
Sets the User Agent list
Sets the new User Agent list in the array form.
Documentation generated on Tue, 09 Sep 2008 19:27:53 -0400 by phpDocumentor 1.4.1