#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    3
    Rep Power
    0

    RAQ4 .htaccess hotlinking problems


    If i put an htaccess file in the directory i want to protect against hotlinkers, the images are broken even if you type them into your browser from the site !!


    ????
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    seems like your .htaccess file is making the images too secure...
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    3
    Rep Power
    0
    RAQ4I htaccess problem:

    I'd rather use a .htaccess file as it's easier for me but it's not working ? It displays broken images when viewing them from the site.

    Also, if i try PICO, where do i put this exactly in the "httpd.conf" file:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://123.12.123.1.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://mysite.com.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://myste.com.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com.*$ [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp|asx|mpeg|mpg|avi|wmv)$ http://www.anyothersiteiwant.com [R,NC]

    ***************************************************
    Where in this :

    # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
    # See also the BindAddress entry.

    #<VirtualHost host.some_domain.com>
    #ServerAdmin webmaster@host.some_domain.com
    #DocumentRoot /www/docs/host.some_domain.com
    #ServerName host.some_domain.com
    #ErrorLog logs/host.some_domain.com-error_log
    #TransferLog logs/host.some_domain.com-access_log
    #</VirtualHost>







    NameVirtualHost 123.12.123.2
    <VirtualHost 123.12.123.2>
    ServerName www.mysite.com
    ServerAdmin admin
    DocumentRoot /home/sites/home/web
    ServerAlias free-all.net
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^123.12.123.2(:80)?$
    RewriteCond %{HTTP_HOST} !^www.mysite.com(:80)?$
    RewriteRule ^/(.*) http://www.mysite.com/$1 [L,R]
    RewriteOptions inherit
    AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
    Alias /caspclient /home/chiliasp/caspsamp/friendship/client/content
    Alias /caspagent /home/chiliasp/caspsamp/friendship/agent/content
    Alias /casp401k /home/chiliasp/caspsamp/401K/content
    Alias /caspsamp /home/chiliasp/caspsamp
    Alias /caspdoc /home/chiliasp/caspdoc
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    </VirtualHost>

    *************************************************

    Finally, when it's pasted at the right place, what do i do in PICO to say like "save this" or something like that ? I tried "write out" but i gave me "Permission denied" (i'm the admin by the way)


    Like i said, i would really prefer putting a plain .htaccess with my FTP client as it's hole lot easier.

    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo