[nycbug-talk] direct file access denied via htaccess

Steve Rieger steve.rieger
Wed Jun 15 16:53:32 EDT 2005


hi all am trying (dont even know if this is possible) to prevent anybody 
and all from accessing anhy files via http directly

i know the proper syntax for preventing hotlinking


# cat .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.(com?net) [NC]
RewriteRule \.(gif|jpg|bmp|mid|css)$ - [F,NC]

but say that you know that i have a jpg at 
http://www.mydomain.com/stever/junk/001.jpg

i need to prevent anybody from pasting that into their browser and 
getting that image. the above htaccess file aint working, how can i make 
this happen.



thanx


-- 
--
Steve Rieger
(212) 804-1131   (Work)
(646) 335-8915   (Cell)
chozrim           (aim)





More information about the talk mailing list