Forbidden Errors.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chodadog
    Confirmed User
    • Apr 2002
    • 9736

    #1

    Forbidden Errors.

    I've been trying to get this .htaccess script to work...
    But no matter what i do (i've tried 8 variations), i get a forbidden error when accessing any file in the folder containing the script. Whether it be, gif, jpg, html, or php.

    Rewriteengine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.trusted.com/.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]

    Obviously with all the relevant details for my site instead of what's there...

    What's the problem? I can't figure it out

    I made sure to upload the .htaccess file in ASCII and all.
    26 + 6 = 1
  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    does your server have the mod_rewrite module loaded?
    SIG TOO BIG

    Comment

    • chodadog
      Confirmed User
      • Apr 2002
      • 9736

      #3
      I'm really not sure to be honest.
      I assumed it was.. probably quite stupidly ;)

      I'll find out later tonight when my host comes online.

      Stupid virtual account
      26 + 6 = 1

      Comment

      • Flash
        Confirmed User
        • Jun 2001
        • 156

        #4
        sometimes you have to tell a host to enable .htaccess.
        Submit Galleries Here

        Trade Here

        Comment

        • chodadog
          Confirmed User
          • Apr 2002
          • 9736

          #5
          ok, .htaccess is enabled, and the mod_rewrite module is loaded.

          Any ideas why that script is not working? I'm completely stumped!

          Just some extra notes about the server..
          It's using the Ensim WEBppliance 3.0

          Not sure if that makes a difference.. any ideas?
          26 + 6 = 1

          Comment

          • chodadog
            Confirmed User
            • Apr 2002
            • 9736

            #6
            *bump*
            26 + 6 = 1

            Comment

            • RubyHost Admin
              Registered User
              • Apr 2002
              • 20

              #7
              Choda,

              I have an idea.

              Try Capitalizing the "E" in RewriteEngine On. Here is a clip from my .htaccess.


              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !^$
              RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
              RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]


              Good Luck!
              Vin

              Comment

              Working...