Htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    Htaccess question

    How to i stop someone from typing in for example

    www.gggg.com/juicy.js and downloding the .js file?
  • Snake Doctor
    I'm Lenny2 Bitch
    • Mar 2001
    • 13449

    #2
    I would think you could add the "js" extension to the file you already have protecting your jpegs.

    If you don't already have one, do a search on google for htaccess, there's plenty of good resources out there
    sig too big

    Comment

    • Libertine
      sex dwarf
      • May 2002
      • 17860

      #3
      Originally posted by juicylinks
      How to i stop someone from typing in for example

      www.gggg.com/juicy.js and downloding the .js file?
      Virtually impossible if you want to retain functionality for at least 90% of the surfers.

      (I am assuming you want to make it impossible for surfers to get the .js file)
      Last edited by Libertine; 01-24-2003, 08:17 PM.
      /(bb|[^b]{2})/

      Comment

      • Plugger
        Confirmed User
        • Jul 2001
        • 592

        #4
        lenny2 is onthe right track, I would try referer protecting the .js file. It would be easier if the .js file were in it's own directory.

        You might want to check your logs to see how the .js is called and what the referer is . . .

        Comment

        • Voodoo
          ♥ ♦ ♣ ♠
          • Sep 2002
          • 10600

          #5
          COMMAND PROMPT:

          FTP gggg.com
          USERNAME: XXXXXXX
          PASSWORD: XXXXXXXX

          cd www_root
          ren juicy.js reallyjuicy.js

          -----------DONE-------------

          "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

          Comment

          • Voodoo
            ♥ ♦ ♣ ♠
            • Sep 2002
            • 10600

            #6
            You can also put it in a different directory, and protect that directory with htaccess.

            "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

            Comment

            Working...