I want to enable hotlink protection for my server. I was thinking of enabling it from cPanel but since i currently have a .htaccess it may mess with my vbseo settings.
Is the following .htaccess correct ? and do you advice me to change any settings ?
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums) RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.*)$ $1 [L] RewriteCond %{QUERY_STRING} !vbseourl= RewriteCond %{REQUEST_FILENAME} !chat RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://ayyas.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.ayyas.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://october.ayyas.com.*$ [NC] RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|wmv|WMV|jpeg|JPEG|avi|AVI|rar|RAR|zip|ZIP)$ http://www.ayyas.com/images/warning.gif [L,R]



LinkBack URL
About LinkBacks






Reply With Quote
