HTTP (Internet)
Allowing shorter passwords in AutoIndex
Thursday, October 30th, 2008If you’ve ever found AutoIndex PHP Script’s password valiator’s resrictions on a long password annoying, you’re not alone. Fortunately, we have found a workaround for it.
Steps
Download the AutoIndex script.
Extract the archive and open classes/Admin.php
Find the line that says “private static function validate_new_password($pass1, $pass2)“.
Move further down to the line that says “if (strlen($pass1) < ” and:
Change [...]
Setting up a Wikipedia clone (part 2)
Sunday, September 28th, 2008This is the second part to creating your own Wikipedia clone. If you haven’t already read done part 1, then you must do part 1 before continuing. This part deals with making your MediaWiki more Wikipedia-ish.
Install the Cite extension to enable <ref> and <references />.
Create a template with text that states that the page contains [...]
Creating a Wikipedia clone (part 1)
Thursday, September 25th, 2008If you ever wanted to set up your own topic-specific or subject-specific Wikipedia®, then you’re in luck! We’re here to give you simple and easy to follow instruction on creating your own mini-Wikipedia®.
Before you start:
You need to have a web server with at least PHP5 and MySQL 4.
You need to understand the GFDL, and either [...]
Enabling and in MediaWiki
Sunday, September 14th, 2008
If you have a MediaWiki installation and decide to make it Wikipedia-like, you will find that the <ref> tags and the <references /> tags don’t work like they do in Wikipedia. Below is a screenshot of the citation tags not working:
To fix this problem, you need to install the Cite extenstion for MediaWiki. Below is [...]
Wordpress author email blacklist patch
Friday, August 29th, 2008If you’ve ever needed to block a single comment spammer using multiple IPs, referrers and urls, but the same email, here’s a patch for Wordpress 2.5. This patch is released under the GNU General Public License.
Add the following code to wp-comments-post.php after the line “$comment_content = trim($_POST['comment']);” (line 30 on v2.5):
// ****** Start of comment email patch by Compdigitec ******
$name = ‘comment_author_email_blacklist.txt’;
$blacklist_email = ”; [...]
Latest comment spammers on Compdigitec Labs
Monday, August 25th, 2008A list of recent comment spammers for you to check IPs against. Note that the actual comment or the link spammed is not provided because it either may be copyright violation or the sites may be harmful or is an bad exploit website.
IP 142.32.208.234 using email d62s_test469@hotmail.com. Spammed on 2008-08-17 21:16:21 GMT. Spam consisted of [...]
Changing the user agent of PHP
Wednesday, August 20th, 2008If you ever need to adjust or change the default user agent that PHP accesses pages with (http and ftp wrappers) because either the default PHP user agent was blocked (”PHP”) or you wrote a bot with PHP and wish to customize it, you can do so easily with a php directive called “user_agent”. Note [...]
Parsing text files in PHP with FlatfileTools
Wednesday, August 13th, 2008Compdigitec FlatfileTools is a API written in PHP to manipulate, read and modify plain text databases. It can also manipulate existing databases, such as CSV files. It is released under the GNU General Public License and therefore is free software.
To use it, download Compdigitec FlatfileTools. Then include_once it like this:
<?php
include_once(‘flatfiletools.lib.php’);
// The rest of your code goes here…
?>
For example, to parse the following [...]
Very Suspicious Internet Robots
Wednesday, July 23rd, 2008So far we have come across some very strange and suspicious robots hitting our site; we have identified them for you here. Feel free to use this information to block these suspicious robots from hitting/scraping your website.
OOZBOT/0.17 (–; http://www.setooz.com/oozbot.html; pvvpr at iiit dot ac dot in)
This bot tried to access only the home page. It’s [...]
