[1] I read: FAQ: mod_rewrite, 301 redirects, and optimizing Apache [2] Can someone help me clean this up? [3] I would like to allow one file, jhsands.jpg to be accessed by everyone (any referrer). [4] Thank you SetEnvIfNoCase Referer "^http://bulletin.myspace.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://bulletin.myspace.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://comments.myspace.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://comments.myspace.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://profile.myspace.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://profile.myspace.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://otherdomain.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://otherdomain.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://www.otherdomain.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.otherdomain.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://domain1.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://domain1.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://www.domain1.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.domain1.com$" locally_linked=1 SetEnvIfNoCase Referer "^https://domain1.com/" locally_linked=1 SetEnvIfNoCase Referer "^https://domain1.com$" locally_linked=1 SetEnvIfNoCase Referer "^https://www.domain1.com/" locally_linked=1 SetEnvIfNoCase Referer "^https://www.domain1.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1 <FilesMatch "\.(gif|png|swf|pdf|doc|zip|rar|jpe?g)$"> Order Allow,Deny Allow from env=locally_linked </FilesMatch> Code (markup):