Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    a cardboard box
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using .htaccess and HTTP_REFFERENCE

    Anyone here who knows how to use .htaccess well?

    Im trying to make it so that people cannot view one of my pdfs directly by typing in its address, but has to go through another one of my pages.

    Basically, I would use javascript, but you cant really put javascript onto a pdf. Anyone know how to do it using .htaccess? I tried to use HTTP_REFFERENCE, but it didnt work and i dont think thats how its used.
    -Scke Xival
    http://www.codingforums.com/images/icons/icon15.gif Elite Piece of Crackers

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    I did something like this for a site once.

    I stored all the pdf's outside the web root directory so no one could access them, then serverd them up through a login interface.

    Involves mime-types and the like.

  • #3
    New Coder
    Join Date
    Mar 2003
    Location
    a cardboard box
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ,..

    how do u do that?
    -Scke Xival
    http://www.codingforums.com/images/icons/icon15.gif Elite Piece of Crackers


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •