Here is what I have going, but I need someone with experience with mod_rewrite to look it over and tell me what I might be missing that would cause it to only affect the users that fall into the listed IPs, and only if they call up the exact filename used in my signature...
Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^172\.128\. [OR]
RewriteCond %{REMOTE_ADDR} ^172\.129\. [OR]
RewriteCond %{REMOTE_ADDR} ^172\.130\. [OR]
... (there are more rules here, like the ones above and below)
RewriteCond %{REMOTE_ADDR} ^172\.189\. [OR]
RewriteCond %{REMOTE_ADDR} ^172\.190\. [OR]
RewriteCond %{REMOTE_ADDR} ^172\.191\. [OR]
RewriteCond %{HTTP_REFERER} ^http://www.forumdomain.com/.*$ [NC]
RewriteRule ^NS23\.jpg$ http://redirectimageURL [NC]