Forum Moderators: phranque
Have a read of this thread: [webmasterworld.com...]
I believe it will accomplish what you need. Have fun :)
Put the unwelcome visitor's IP address in the RewriteCond line, with "\" preceding each period.
The RewriteCond will prevent the redirect unless the IP address matches.
The Rewrite rule will redirect any request for any file except "banned.php" to banned.php.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^12\.34\.56\.78$
RewriteRule !^banned\.php$ /banned.php [R=301,L]
More info: Introduction to mod_rewrite [webmasterworld.com]
Jim