help with mod_rewrite needed :(

hey guys,

i am totally new to this forum, but I hope someone can help me with this problem:

I want to deny access to all pictures (or any other file) which is not being requested from one of my URLs like (www.)abc.com /.de etc etc - only if the people are directly on the site.. apache should deliver them.

i know mod_rewrite is the right tool for this.. and I have it installed/compiled with apache etc etc... BUT i don't know the proper syntax.. i tried a couple howtos.. but none of them worked.... help with mod_rewrite needed :( I always could see the pictures if i 'called' them from a remote .html on a different server.

i tried something like this:

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.startupx.com/.*$ [NC]
RewriteRule .*\.gif$ - [F]


no chance... didn't work.. i tried a couple others... no worky help with mod_rewrite needed :(

does anyone have some experience with this 'situation' and could give me some hints into the right direction?

thanks a lot help with mod_rewrite needed :(


cheers,
-joerg

 

 

 

 

Top