mini tips
protect a single file with htaccess
May 25, 2003
Surround the statements in the .htaccess file with <FilesMatch>...</FilesMatch> tags:
AuthName "username"
AuthType Basic
AuthUserFile /usr/local/share/httpd/htdocs/yourdir/.htpasswd
require valid-user
</FilesMatch>
where filename.html refers to the name of the single file you want to protect.
permissions for mt-db-pass.cgi
May 25, 2003
Quote from Ben Trott:
If you're not running under cgiwrap/suexec, set the permissions to 644.
It doesn't need to be executable; just having it named .cgi makes the webserver try to execute it.
limiting comment text
May 25, 2003
Adding the following onkeyup attribute to your textarea tag will limit text to 20 characters:
Via Stepan.
IP banning wildcards
May 25, 2003
Partial matches work, so yyy.zzz should match xxx.yyy.zzz.
URL to reset activity log
May 25, 2003
If your activity log gets too large, you may not be able to access the page to reset it. Use this URL to reset it instead.
Via Stefan Smalla.
IM this article
May 25, 2003
Provide a link to IM an entry with AOL Instant Messenger:
file upload bookmarklet
May 25, 2003
Kristine created a file upload bookmarklet in this MT support forum thread; just drag to your toolbar.
Then right click on it and select properties - change your-site.com to the name of your site, and change blog_id=2 to the blog id of your choice.