Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (7) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-10-22 (1 year ago) | Not yet rated by the users | Total: 640 | All time: 4,766 This week: 956 |
Version | License | PHP version | Categories | |||
spam_blocker 1.5 | BSD License | 5.0 | Networking, PHP 5, Security |
Description | Author | ||||||||||||||||
This class can be used to check spamming and other malicious and undesirable visitors' IP addresses in Project Honey Pot RBL (Realtime Black List). Innovation Award
|
|
*************************************************************************** Copyright (c) 2015, Alec Scaresbrook All rights reserved. *************************************************************************** To use spam blocker: Note: Your server has to be running PHP 5. Writing the visitor data to the database is about 5 times faster than writing to files. The current version has been tested on PHP Version 5.4.4.42 1 Join Project Honey Pot (http://www.projecthoneypot.org) and contribute to the project. Obtain an API key for querying the Project Honey Pot database. Find var $apikey = 'abc'; in the spam blocker class code. Replace 'abc' with the Project Honey Pot API key. 2. Put the spam_blocker_class.php in a folder in the root of your web files. 3. Put the following code at the beginning (above the header) of each web page to be protected. I've put it on every page. <?php session_start(); include( "class/spam_blocker_class.php"); $ip->spam_blocker_control(""); ?> Change the folder name 'class/' if required. Within the two double quotes of the spam_blocker_control("") code you can specify a path to the folder where the visitor files are to be written. Example: $ip->spam_blocker_control("visitor_files/"); Make that folder on the development computer (if required) and the server, and make sure that write permissions are set. If the two double quotes are left empty, then the visitor files are written in your web page root. 4. The file 'spam_blocker_connection.php' is for connecting into your mysql database. Tables are automatically created in the database you specify. By default the server connection variables are empty which means files are written by default. Put the 'spam_blocker_connection.php' file in the root of your web files, unless you want it in a folder, then change the path for 'include ("spam_blocker_connection.php");' in the 'spam_blocker_class.php' file code. Notes: It is easy to forget that spam blocker is working in the background all the time, which means that a large amount of visitor data accumulates, so I've added a switch so that the writing of data can be disabled. Just under 'var $apikey = 'abc';' is 'var $write_data = true;'. Change the '$write_data' value 'true' to false, to disabled the writing of data. |
Screenshots | ||
Files |
File | Role | Description |
---|---|---|
00_search_engine.dat | Output | Typical search engine visits |
05_allowed_suspici...comment_spammer.dat | Output | Access allowed - suspicious comment spammert |
05_blocked_suspici...comment_spammer.dat | Output | Access blocked - suspicious comment spammer |
filelist.gif | Screen | Typical activity file list after a few hours |
readme.txt | Doc. | Readme file for spam blocker |
spam_blocker_class.php | Class | Main class for spam blocker |
spam_blocker_connection.php | Conf. | mysql connection file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Cheshire Cycleway All the pages on this site use spam blocker |
Gardening Masterclass All pages of this site uses spam blocker |