direct link stuff

    Date: 05/24/05 (Apache)    Keywords: web

    I have my first web server up and running and have a lot of graphic content that I don't want people direct linking. I had found the following to put in my httpd.conf to combat this. My problem is that I need it allow requests with no referer through. So if I give a friend a link to a file they can actually look at it...heh. I can't think of a way to do this. Any ideas?

    SetEnvIfNoCase Referer "^http://.*\.vigilant20\.com/" local_ref=1
    SetEnvIfNoCase Referer "^http://lynn\.szwalkiewicz\.com/" local_ref=1
    <FilesMatch "\.(gif|jpg|png)">
       Order Allow,Deny
       Allow from env=local_ref
    </FilesMatch>
    

    Source: http://www.livejournal.com/community/apache/20250.html

« Installation || new community »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home