-
.htaccess help needed
Posted on May 26th, 2009 No commentsHi folks,
I am trying to use an .htaccess file on my server but no matter how much documentation I have found, nothing states what the owner:group should be set to for the file as well as the permissions. I currently have the owner:group set to the same as the vhost. Do I need to set the owner:group to apache’s owner:group instead?
As for the permissions, I have them set to 660. Should this be set to something else?
Finally, this is what I have for the .htaccess contents of the file. Is this workable code for blocking access to images and javascript files throughout the site?
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js)$ [NC]
RewriteRule (.*)/leech.php [R,NC,L]> Is this workable code for blocking access to images and javascript files throughout the site?
No, you’ll need to check the referer for something external
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com
RewriteCond %{HTTP_REFERER} !=”"
RewriteRule \.(gif|jpe?g|png|js)$ /leech.php [R,NC,L]




Recent Comments