It turns out I'm not able to redirect to any page I choose but this will deliver a custom error page to forum visitors forbidden from posting but who will still be allowed to read.
WARNING: This is not for everyone. You have to be running Apache. .htaccess and mod_rewrite are very powerful and unforgiving. One typing mistake and you can ban everyone from your site. You have to ftp the .htaccess file to the server every time you change it. I'm only going to use this myself for forum visitors who are misbehaving but who I think I can persuade to behave properly.
I made a custom error page explaining the temporary ban - 403.html - and uploaded it to the forum directory.
I made a .htaccess file as follows and uploaded it to the forum directory (the file is named .htaccess - with a dot in front and no file extension). Replace 00.00.00.00 with the banned IP addresses, you can have as many as you want separated by [OR] as below. If you only have one, put it on one line without the [OR]. Change the path on the last line to the path to your error document if necessary.
# begin .htaccess file Options +FollowSymlinks RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^00.00.00.00$ [OR] RewriteCond %{REMOTE_ADDR} ^00.00.00.00$ RewriteCond %{REQUEST_METHOD} POST RewriteRule .* - [F,L]
ErrorDocument 403 /forum/403.html |