I added the following to my htaccess file
RewriteCond %{REMOTE_ADDR} 1.2.3.4
RewriteRule ^.*$ http://www.yahoo.com/ [L,R=302]
It is able to block ip address: 1.2.3.4 and redirect him to yahoo's main page but it does not prevent this user from getting access to my rss feed which is located at:
www.mysite.com/feed/ Interestingly, the
"feed/" resource does not exist in my directory but seems to be a virtual one defined internally by wordpress. but i would figure any incoming request would first have to go through htaccess before ever moving forward.
My guess is that when the url points to an existing file the htaccess is able to block and redirect the user but if it is a virtual directory (one that doesnt exist) made by WordPress it seems to let it through.
How do i fix this to redirect this user FOR EVERY CASE!