protecting JPEGs

Out of context: Reply #14

  • Started
  • Last post
  • 16 Responses
  • BZZZP0

    just write a .htaccess rule that prevents certain access to the images.

    the basic idea is to see what the referring page is, but you can go a step beyond that and say "only if the same user token asked for this page in the last X seconds do we allow access to this image" - by having some sort of lookup (in sql) ... this can be very expensive in terms of server overhead, but it -will- prevent the mechanized looting of your images.

    also, making meaningless expiring apparent URLs for your images (think like the expiring links to google's cached pages) would work rather well.

    and yeah, any JS based solution is garbage.

View thread