/home/techb158/ileadtechnology.com/vendor/league/glide/docs/0.3/config
NameSizeModeActions
base-url.md10050644editdlrm
basic-usage.md15100644editdlrm
image-driver.md4060644editdlrm
max-image-size.md6210644editdlrm
secure-images.md15410644editdlrm
source-and-cache.md18310644editdlrm
the-server.md20770644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/league/glide/docs/0.3/config/secure-images.md (1541B)
--- layout: default title: Secure images --- # Secure images Add additional security to your Glide image server with HTTP signatures. By signing each request with a private key, no alterations can be made to the URL parameters.

It is highly recommended that you use secure URLs in production environments.

## Configuration Start by configuring the Glide server to validate each request before you output the image. In the event that the validation fails, Glide will throw an `SignatureException` exception. ~~~ php validateRequest($request); } catch (SignatureException $e) { // Handle error } ~~~ ## Generating secure URLs Next, generate a signature for each image request you make. Glide comes with a URL builder to make this process easy. Be sure to use the same signing key you configured earlier. ~~~ php getUrl('cat.jpg', ['w' => 500]); // Use the URL in your app echo ''; // Prints out ~~~