These topics will contain purely code samples - whether that is Active Server Pages (ASP), Visual Basic (VB),
Structured Query Language (SQL) or some of the other languages I have made use of in the past. The sorts of things
the topics are composed of will vary wildly from fully-fledged applications and utilities through to add-ins which
provide some useful functionality to any code you care to include them into.
Although though we have tried our best make the quick links give you the most relevant items on this specific topic
however if what you want is not here you might want to try going back to the
main resources page
and having a look at some of the other topics on offer as you will find they cover a wide range of material.
ASP script created as a replacement for the default 404 error page which ships with IIS. Aside from allowing a more personal (not to mention useful) message than the default page provided, this script also allows 301 & 302 redirects to be issued based upon the page which generated to the 404 in the first place. This means pages which have been moved can automatically take the user to the new page, allowing the user to get what they want rather than spending time trying to find your missing page. Also supports generating 403 forbidden and virtual aliases.
ASP script designed to stop images from being hot-linked (linked to and/or used from other website). If an attempt is detected you can choose the exact image you would like to send in place of the image they requested. Additionally as the script uses only basic ASP components no ISAPI or 3rd party components are required to be installed before you can use this script.
An ASP script which can be adapted to keep specific crawlers out of your ASP-based website, or these rules just be applied to single pages. The latest version of the script allows you to filter sources by both user-agent or by IP address, including full, partial and wildcard matches.
T-SQL script for MS SQL Server, capable of performing a simple audit of password security across all logins (apart from NT authenticated logins) on the SQL Server and then presents the information discovered in a very simple report.
T-SQL script for MS SQL Server, displays information about the current service pack and server version. Allows automation of a tedious process - the script is already coded to knows which version strings match up to which service pack releases for versions 6.0, 6.5, 7.0 and 2000 of MS SQL Server.
VB utility capable of processing a number of website log files and extracting all the search terms present in the file, providing a low-level view of where the traffic from your site is coming from any why. Unlike some log analysis packages this will list every search term in your logs, you can also train it to pick up search terms from new sources from within the application which allows you to near perfect coverage of your logs at a very low level.
VB utility which extracts a complete list of all user-agents from a set of IIS log files, capable of auto-detecting the field layout, scanning through all available logs and then constructing a list which includes the user-agent string, the first and last times the UA made a request, the highest and lowest TCP/IP addresses this UA has ever been seen on and the total number of requests made. Output format can include a simplified text output or the full detail XML output.
ASP script created to provide some security against any e-mail addresses present on your site being harvested by e-mail collectors (aka spambots). Unlike some other solutions the output from this script is still perfectly valid html and still remains useable even if javascript is disabled. As the script uses a combination of protection methods, ranging from address filtering through to examining request headers, this makes it a much harder target for a malicious spider to try to cheat an address out of.
VB utility to aid in the preparation of IIS logfiles, which modifying the log files just enough to allow them to be easily imported into any major database or spreadsheet package in order to be examined or analysed.
VB module capable of parsing a command line and turning it into an array of strings. Since it correctly parses delimiters this makes it ideal for applications which involve handling of multiple long filenames, or for that matter any type of delimited input via the command line.
ASP script created to automatically log all the relevant information being passed via a post operation, it operates without an interface as it has but one purpose which is to automatically log the data which is send to it to a text file. Originally written to facilitate debugging of an unknown post operation to a local webserver, as it proved rather useful it was tidied up and placed here.
T-SQL script for MS SQL Server, allows transation logs / logfiles to be shrunk whilst still keeping the database they are attached to on-line, meaning you can increase the amount of space available for use while not reducing availability of the database.
ASP script created to allow the correct handling of requests for resources moved to a new location - response.redirect issues a 302 status which claims that the resource is temporarily moved whereas this script issues a 301 status code which means that the resource has moved permenantly. This not only means it is using the correct method but that it will make more sense to things like search engines.
ASP script created to allow access to all the variables at a given moment in time, displaying all server variables, session data, cookie data and form data all listed out neatly on one page.
ASP script designed to provide multiple users with variable access levels. Uses the standard http-based authentication scheme and is composed of only ASP scripts - no DLL's, no global.asa changes, no NT authentication - to the casual observer it looks identical to the results produced by a htaccess-type script.
ASP script that lets you manipulate simple text files remotely, also functions as a tool to allow you to do some simple tests your IUSRs permissions. The code itself is quite simple and lacks most of the nice touches that are applied to these sorts of things - it simply uses the file system object (FSO) and where appropriate traps and reports any errors it encounters in an attempt to make it as small as possible.
ASP script implementation of the Luhn algorythm (also known as the Mod 10 algorythm), which is a way to ensure that various types of credit and debit card numbers have been correctly typed without actually putting them through a slow (and often limited usage) card payment authentication system. Because this was just an experiment, it works in isolation operating on a very simple "enter number, check number, return status" system.