Menu

Media Firewall, Protected Media, & W...

Help
Thomas52
2012-05-28
2013-05-30
  • Thomas52

    Thomas52 - 2012-05-28

    I've re-read the wiki, but am still not clear on the media firewall, watermarks, etc., and getting everything to work correctly.
    I want to show watermarked full-sized images to all but authenticated users, thumbs ignored. As I understand, I activate the "media firewall," and use the "Manage Multimedia" to move the images to the /index directory, and use the same to "correct permissions." I've configured to store the watermarked images on the server. 
    But I'm missing something, and the images are the same when I logon as when I logoff.  Suggestions?  

     
  • Gerry Kroll

    Gerry Kroll - 2012-05-28

    Watermarks can only be added to media that reside in the protected media directory.  When the remote browser requests a media file that doesn't reside in the standard media directory, the server generates a 404 error.

    The .htaccess file in the standard media directory contains instructions to launch the Media Firewall when the server is about to deliver that 404 error to the remote browser.  Watermarking is done by the Media Firewall, but only when told to do so by the GEDCOM configuration and also only when the GD library and True Type fonts are installed on the server.

    If everything is configured correctly and watermarking still doesn't work, you may have a browser cache problem.  In this case, be sure to configure the browser's cache to be relatively small (I generally recommend 10 Mb or less), and also clear the browser's cache.  You could also have a server misconfiguration that prevents it from reading or acting upon a .htaccess file that's within the PGV directory structure.

    It's also possible that the existing .htaccess file in the standard media directory contains conflicting instructions about how the 404 error should be handled.  To fix this, you should move all media files to the standard media directory, disable the media filewall, delete the .htaccess file in the standard media directory, enable the media firewall, and then move all media files to the protected media directory.  This sequence should create a good .htaccess file.

     
  • Thomas52

    Thomas52 - 2012-06-10

    Sorry for the delay in responding, Gerry -- your solution worked like a charm, of course.  ;)

     

Log in to post a comment.