Drain Hole FAQ

These are some of the more popular questions asked about Drain Hole.

Why do I get a 404 error when I download a file?

Have you enabled permalinks on your site? Drain Hole requires that permalinks are correctly enabled and that your site is powered through a .htaccess file.

Is mod_rewrite enabled on your server? Drain Hole requires mod_rewrite to be enabled and working. To check if you have this, create a file info.php in the root directory of your server:

<?php phpinfo (); ?>

Then ‘run’ the file by accessing it: http://yourdomain.com/info.php. The resulting information output will tell you if mod_rewrite is enabled.

I can download files but why are no statistics registered?

Why can people still download my restricted files?

It is likely that your files are stored within a publicly accessible location on your website. This means that Drain Hole cannot monitor the files unless you create a special .htaccess file inside the hole directory. Drain Hole can create this for you, but you must enable the ‘Create .htaccess file in holes’ option before creating your new hole.

The .htaccess file is as follows:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ YOUR-WORDPRESS-DIRECTORY/index.php
</IfModule>

You must change YOUR-WORDPRESS-DIRECTORY with the location of your WordPress installation. For example, /home/username/public_html/. This .htaccess file should be placed inside your download directory (i.e. the directory which you told Drain Hole to use to download from)

Leave a comment

Your email address will not be published. Required fields are marked *