.:Max:.
08-30-2007, 02:25 PM
ok i have pieced this togeather from forums mainly never realy payed much attention to .htaccess but because im a flash developer its going top be an importent part of my security .
So its giviong me a 500 error and id like to fix it from top to bottom the functions are
1 manage my custom error pages
2 Prevent .swf hotlinking
3 prevent access to my Site Data/Libary.swf (this should never be viewed by the user only the swf)
so id appricae if you guys could help me out here , also is theyre any to prevent swf caching on the server side ? if its in a .htm it can be easily edited
thanks
RewriteEngine On
ErrorDocument 401 Error%20Screens/401.shtml
ErrorDocument 403 Error%20Screens/403.shtml
ErrorDocument 404 Error%20Screens/404.shtml
ErrorDocument 500 Error%20Screens/500.shtml
SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
SetEnvIfNoCase User-Agent "^ExtractorPro" bad_bot
SetEnvIfNoCase User-Agent "^CherryPicker" bad_bot
SetEnvIfNoCase User-Agent "^NICErsPRO" bad_bot
SetEnvIfNoCase User-Agent "^Teleport" bad_bot
SetEnvIfNoCase User-Agent "^EmailCollector" bad_bot
SetEnvIfNoCase User-Agent "^LinkWalker" bad_bot
SetEnvIfNoCase User-Agent "^Zeus" bad_bot
<FilesMatch "\.swf$">
Order Deny,Allow
Deny from all
Allow from .me.net
<FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?me.net/.*$ [NC]
RewriteRule \.(swf)$ http://I dont think so.com [R,L]
</IfModule>
So its giviong me a 500 error and id like to fix it from top to bottom the functions are
1 manage my custom error pages
2 Prevent .swf hotlinking
3 prevent access to my Site Data/Libary.swf (this should never be viewed by the user only the swf)
so id appricae if you guys could help me out here , also is theyre any to prevent swf caching on the server side ? if its in a .htm it can be easily edited
thanks
RewriteEngine On
ErrorDocument 401 Error%20Screens/401.shtml
ErrorDocument 403 Error%20Screens/403.shtml
ErrorDocument 404 Error%20Screens/404.shtml
ErrorDocument 500 Error%20Screens/500.shtml
SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
SetEnvIfNoCase User-Agent "^ExtractorPro" bad_bot
SetEnvIfNoCase User-Agent "^CherryPicker" bad_bot
SetEnvIfNoCase User-Agent "^NICErsPRO" bad_bot
SetEnvIfNoCase User-Agent "^Teleport" bad_bot
SetEnvIfNoCase User-Agent "^EmailCollector" bad_bot
SetEnvIfNoCase User-Agent "^LinkWalker" bad_bot
SetEnvIfNoCase User-Agent "^Zeus" bad_bot
<FilesMatch "\.swf$">
Order Deny,Allow
Deny from all
Allow from .me.net
<FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?me.net/.*$ [NC]
RewriteRule \.(swf)$ http://I dont think so.com [R,L]
</IfModule>