Web Wiz Guide
Home
Home
Products
Products
Web Hosting
Web Hosting
Knowledgebase
Knowledgebase
Forums
Forums

Web Wiz NewsPad Software Web Wiz NewsPad - eNewsletter Software

Web Wiz NewsPad Securing Your Access Database


Don't be a victim to a hacker!!

By not securing your Web Wiz NewsPad Access database a hacker can download the database and use the data from within it to hack NewsPad.

Follow the simple instructions below to find out how to secure your NewsPad's Microsoft Access database.

For security it is highly recommended that you move the location of the Access Database to a folder above the root directory of your web site where it can not be accessed using a web browser, good web hosts will have a directory set up for this usually called 'private', 'database', or 'db'.

For the purposes of this exercise we will presume the tree structure of your website is similar to below:-
Website Tree View
  1. Locate the file Access Icon NewsPad.mdb found in the 'database' directory (this is Web Wiz NewsPad Access Flat File Database).
    database directory
  2. Move the Access Icon NewsPad.mdb file to a secure location, usually above the root of your web site's public directory on the server, where it can not be accessed using a web browser. Good web hosts will have a directory set up for this usually called 'private', 'database', or 'db'. If you are uncertain of the location of your private database directory contact your web host.
    Move the Access database to the secure folder
  3. Edit, with a text editor, the file 'database_connection.asp' found in the 'database' directory. In this file you will find the following line of code: -
  4. strDbPathAndName = Server.MapPath("database/wwForum.mdb")
    Edit the location of the Access database
  5. Update the path marked in red (database/), to the new path to the database directory Access Icon NewsPad.mdb is within. The path needs to be the relative path from the directory you have placed NewsPad in. (tip: to move up a directory use ../ eg: "../db/NewsPad.mdb").
    Example of the location of the Access database
  6. Save the amended file and upload it to your web space overwriting the original 'database_connection.asp' file.


© Copyright 2001-2009 Web Wiz®. All rights reserved.