Results 1 to 1 of 1

Thread: htaccess - block user from RSS viewing

  1. #1
    Join Date
    Jul 2009

    Question htaccess - Doesnt block user from RSS viewing.WHY?!?

    I added the following to my htaccess file

    RewriteCond %{REMOTE_ADDR}
    RewriteRule ^.*$ http://www.yahoo.com/ [L,R=302]

    It is able to block ip address: 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: http://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!
    Last edited by corezz; 08-01-2010 at 12:29 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center