Movie Posters - Can you do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Snake Doctor
    I'm Lenny2 Bitch
    • Mar 2001
    • 13449

    #1

    Movie Posters - Can you do this?

    Can you use cookies and htaccess to protect movies if the html page where the cookie is set is on a different domain and server than the one the movies are on? (i.e. I have the gallery on one host and the movie files on a cheap ass host)

    The cookies and htaccess work for me when I've got all the files on the same domain, but when I try it with the movie files on the other server I get errors in windows media about the file being corrupt.

    Is this not possible or am I doing something wrong?
    sig too big
  • Mr.Fiction
    Confirmed User
    • Feb 2002
    • 9484

    #2
    Here is a movie poster for Lord of the Rings:
    Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

    Comment

    • Snake Doctor
      I'm Lenny2 Bitch
      • Mar 2001
      • 13449

      #3
      Well that wasn't very funny, but at least you bumped my thread
      sig too big

      Comment

      • Madball
        Confirmed User
        • May 2002
        • 748

        #4
        From what I know, a cookie set by domain A can NOT be read by domain B. Not even different subdomains on the same domain. Won't work.
        <a href="http://www.homepageofthedead.com"><img src="http://board.gofuckyourself.com/images/globill_88x31.gif"></a>

        Comment

        • Mr.Fiction
          Confirmed User
          • Feb 2002
          • 9484

          #5
          Originally posted by Lenny2
          Well that wasn't very funny, but at least you bumped my thread
          I'll try harder next time. Sorry.
          Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

          Comment

          • eRock
            Confirmed User
            • Apr 2001
            • 3112

            #6
            Originally posted by Lenny2
            Well that wasn't very funny, but at least you bumped my thread
            Ah well...and here I was on the same wavelength as Mr. Fiction. That's the first thing that popped into my mind...an actual; poster from a movie. He got a chuckle outta me.
            Swiftwill Hosting

            Comment

            • missnglnk
              Confirmed User
              • Aug 2001
              • 131

              #7
              Originally posted by Madball
              From what I know, a cookie set by domain A can NOT be read by domain B. Not even different subdomains on the same domain. Won't work.
              They can if you properly set the cookie domain value. If set to '.domain.com', it will allow all subdomains, if set to 'domain.com', it will only allow that domain, and if set to 'blah.domain.com', it will only allow that subdomain.
              --
              cat: .signature: No such file or directory

              Comment

              • SpaceAce
                Confirmed User
                • Jul 2002
                • 6493

                #8
                When you set a cookie, you tell the cookie which domains to send itself to. Unless you are operating scripts on both servers, there's really no way for you to do what I think you are talking about.

                SpaceAce

                Comment

                • Snake Doctor
                  I'm Lenny2 Bitch
                  • Mar 2001
                  • 13449

                  #9
                  Originally posted by missnglnk


                  They can if you properly set the cookie domain value. If set to '.domain.com', it will allow all subdomains, if set to 'domain.com', it will only allow that domain, and if set to 'blah.domain.com', it will only allow that subdomain.
                  This is the javascript I'm using to set the cookie (without the opening and closing javascript tags)

                  // Calculate the expiration date
                  var expires = new Date ();
                  expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);

                  document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();


                  and this is what's in the htaccess file

                  RewriteEngine on
                  RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*mydomain.COM(:80)*/ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com(:80)*/ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://mydomain.com(:80)*/ [NC]
                  RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
                  RewriteRule /* http://www.redirecturl.COM [R,L]


                  It works when I put the movies in a subfolder of the directory the html page is in, but it fucks up when I have the movies on another server.
                  sig too big

                  Comment

                  • m0rph3us
                    Confirmed User
                    • Mar 2001
                    • 2033

                    #10
                    Originally posted by Lenny2


                    This is the javascript I'm using to set the cookie (without the opening and closing javascript tags)

                    // Calculate the expiration date
                    var expires = new Date ();
                    expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);

                    document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();


                    and this is what's in the htaccess file

                    RewriteEngine on
                    RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*mydomain.COM(:80)*/ [NC]
                    RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com(:80)*/ [NC]
                    RewriteCond %{HTTP_REFERER} !^http://mydomain.com(:80)*/ [NC]
                    RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
                    RewriteRule /* http://www.redirecturl.COM [R,L]


                    It works when I put the movies in a subfolder of the directory the html page is in, but it fucks up when I have the movies on another server.
                    you can't have domainB read domainA's cookie.
                    <font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> ยป </font>

                    Comment

                    • Undutchable
                      Registered User
                      • Jun 2002
                      • 2217

                      #11
                      Your question is funny in a way. You say you use hotlink protection, and then you think it's weird that you get an error in WMP when you hotlink the movies?

                      Comment

                      • Morgan
                        Too lazy to set a custom title
                        • May 2002
                        • 10520

                        #12
                        I couldve sworn this thread was about "motion picture posters" as well.
                        PornstarPlatinum.com | TransErotica.com

                        Comment

                        Working...