Hot links

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • misha

    Hot links

    Hello.

    I found a lot of hot-links in the form, for example:
    <img src='http://www.my-works.org/images/faces/wave1.gif' />
    that points directly on the images on my site.

    Actually I deny this type of links by using RewriteRule Apache meccanism.

    I would like anyway, to send a javascript to browser as a response of this
    type
    of request. This javascript should create the image on-fly directly on
    browser site.

    How can I do it?

    Thanks
    Misha


  • Disco Octopus

    #2
    Re: Hot links

    in news:bu3dnn$2o0 $1@fata.cs.inte rbusiness.it,
    misha typed:[color=blue]
    > Hello.
    >
    > I found a lot of hot-links in the form, for example:
    > <img src='http://www.my-works.org/images/faces/wave1.gif' />
    > that points directly on the images on my site.
    >
    > Actually I deny this type of links by using RewriteRule Apache
    > meccanism.
    >
    > I would like anyway, to send a javascript to browser as a response of
    > this type
    > of request. This javascript should create the image on-fly directly on
    > browser site.
    >
    > How can I do it?
    >
    > Thanks
    > Misha[/color]

    If I understand correctly.... instead of denying the image, you could simply
    redirect to another image. yes???




    Comment

    • misha

      #3
      Re: Hot links

      > If I understand correctly.... instead of denying the image, you could
      simply[color=blue]
      > redirect to another image. yes???[/color]

      It is simple to redirect to another image on my site.
      I would like to send a javascript instead

      Misha



      Comment

      • Michael Winter

        #4
        Re: Hot links

        On Wed, 14 Jan 2004 14:54:25 +0100, misha <info@my-works.org> wrote:
        [color=blue]
        > It is simple to redirect to another image on my site.
        > I would like to send a javascript instead[/color]

        Surely, if a browser is expecting image data[1], you should only send
        image data. If you send mark-up, wouldn't the browser just ignore it as it
        wasn't expecting it?

        Mike


        [1] That is, it sends a HTTP request for


        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        • misha

          #5
          Re: Hot links

          > Surely, if a browser is expecting image data[1], you should only send[color=blue]
          > image data. If you send mark-up, wouldn't the browser just ignore it as it
          > wasn't expecting it?[/color]

          Thanks for response. You are right.

          I would like to know if there is some method to make browser change it's
          mind
          and execute my script.

          Misha


          Comment

          • Brian Genisio

            #6
            Re: Hot links

            misha wrote:
            [color=blue][color=green]
            >>If I understand correctly.... instead of denying the image, you could[/color]
            >
            > simply
            >[color=green]
            >>redirect to another image. yes???[/color]
            >
            >
            > It is simple to redirect to another image on my site.
            > I would like to send a javascript instead
            >
            > Misha
            >
            >
            >[/color]

            You cannot send javascript in place of an image, but you can create an
            image that says your message, and send it in replacement.

            You can also use PHP, if you want to send back dynamic images.

            Brian

            Comment

            • misha

              #7
              Re: Hot links

              > You cannot send javascript in place of an image, but you can create an[color=blue]
              > image that says your message, and send it in replacement.
              >
              > You can also use PHP, if you want to send back dynamic images.[/color]

              Thanks
              Misha


              Comment

              • Michael Winter

                #8
                Re: Hot links

                On Wed, 14 Jan 2004 16:20:31 +0100, misha <info@my-works.org> wrote:
                [color=blue][color=green]
                >> Surely, if a browser is expecting image data[1], you should only send
                >> image data. If you send mark-up, wouldn't the browser just ignore it as
                >> it wasn't expecting it?[/color]
                >
                > Thanks for response. You are right.
                >
                > I would like to know if there is some method to make browser change it's
                > mind and execute my script.[/color]

                I very much doubt it.

                With links (<A href="...), the browser is free to interpret and render the
                data according to its type, whether that be markup, image or sound (etc)
                data. However, with IMG elements, the browser is being told explicity that
                the data is an image; it should be interpreted and displayed as such. At
                best, you could always return an image like this one:



                It's a 1024x768, two-colour GIF and only 4800 bytes. It would have a low
                impact on bandwidth and be quite effective at making your point. I know of
                a site that does this sort of thing be cause of their massive bandwidth
                problems (they actually return a 32767x32767 plain white GIF at just under
                710 kilobytes). They also check the server logs and ban requests that
                originate from sites that link to them without permission.

                Mike

                --
                Michael Winter
                M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

                Comment

                • misha

                  #9
                  Re: Hot links

                  Thanks for your response.

                  I thought to send an ads invocation script that I use on my site, but it
                  seems impossible.

                  Misha


                  Comment

                  Working...