Archive for October, 2007

Deny Access to No Referrer Requests

Wednesday, October 31st, 2007

When your readers comment, the wp-comments-post.php file is accessed, does its thing, and creates the post. The user’s browser will send a “referral” line about this.

When a spam-bot comes in, it hits the file directly and usually does not leave a referrer. This allows for some nifty detection and action direct from the server. If you are not familiar with Apache directives, then write the following in your root directory .htaccess file::

RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

This will:

Detect when a POST is being made
Check to see if the post is on wp-comments-post.php
Check if the referrer is in your domain or if no referrer
Send the spam-bot BACK to its originating server’s IP address.
NOTE 1: In the 4th line, change yourdomain.com to your domain.xxx without the www or any prefix for that matter.
NOTE 2: There is a slim chance that someone’s browser will not send the referral, but this is extremely rare.

This essentially deflects the spam-bot back on itself.

Taken from Wordpress Codex

Show Empty Table Cells with CSS in Internet Explorer

Monday, October 29th, 2007

When you create a html table and apply a border using CSS, then the empty cells do not have a border. So you pull out your CSS book and find empty-cells:show; and think your problems are solved but empty-cells is unsupported in IE…go figure. But I have found a combination of styles that work. Try this…apply the border-collapse:collapse; and empty-cells: show; to the table level and IE will display borders around empty cells.

Tags:

Firefox and integrated Windows Authenication

Friday, October 26th, 2007

If you need Firefox to work with integrated Windows Authentication do this:

  1. Open Firefox and go to about:config
  2. In the filter type network.automatic-ntlm-auth.trusted-uris or just scroll down until you find it.
  3. Double click that line and put in the name of the server you want to use windows auth. Ex: localhost,.tgrayimages.com (multiple sites separated by commas)
  4. Click OK and restart Firefox

Yipee! Now you can uninstall IE! (just kidding)

Psalm 5

Thursday, October 18th, 2007

Psalm 5

1 O LORD, hear me as I pray; pay attention to my groaning.
2 Listen to my cry for help, my King and my God, for I pray to no one but you.
3 Listen to my voice in the morning, LORD. Each morning I bring my requests to you and wait expectantly.

8 Lead me in the right path, O LORD, or my enemies will conquer me. Make your way plain for me to follow.

Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians
Lizzy Leaves for the Philippians