.htaccess file Help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YTP
    Registered User
    • May 2004
    • 10

    #1

    .htaccess file Help needed

    Hello, I've put my site on a paid host now. I've been trying to make a .htaccess file to keep people from hotlinking my images, however, every time I get it uploaded, Not even I can see any images within the domain.

    Can someone explain to me what is wrong?

    I've tried using an online htaccess program. I've downloaded a program that writes it for you called HTAccessible. I've even had the guys at tech support make one but the same thing happens.

    The host I'm using is http://www.adult4web.com/ just the basic plan.

    Thanks

    YTP
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    Some progs tend to add uneeded characters / symbols that, as you can see actually hurt instead of help.

    It should resemble the following:

    Re-write-Rule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/antihotlinkhtml.here
    Last edited by Lycanthrope; 05-18-2004, 03:13 PM.

    Comment

    • YTP
      Registered User
      • May 2004
      • 10

      #3
      I don't see anything there for what I'm looking for

      ???

      Comment

      • YTP
        Registered User
        • May 2004
        • 10

        #4
        This is what the file contained that the host uploaded

        RewriteEngine on
        RewriteCond %{HTTP_REFERER} ^$
        RewriteRule \.(gif|jpg|png|css|swf)$ - [F]

        Comment

        • Lycanthrope
          Confirmed User
          • Jan 2004
          • 4517

          #5
          Right. The [F] is what's causing your problem.

          Simply replace your rewrite rule w/ the one I provided and you'll be set...

          here, just look at this for the best explanation:

          http://www.webpimps.com/scripts/htaccess/

          Comment

          • YTP
            Registered User
            • May 2004
            • 10

            #6
            I've managed to figure it out with the HTAccessablity program. the prob I was doing when it asked for the domain to be allowed to hotlink, I had entered the full url http://www and only need mydomain.com by doing this, it worked great!

            Thanks for the help!

            Sure learn a lot from this board

            Comment

            Working...