---
schema_version: "1"
id: 042773d711512a6c6a5ab3c171d95044a43237d5ebbfa25ea0975b813599c7f0
title: IMAGEPROXYURL
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_imageproxyurl.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_imageproxyurl.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3f82eb3a17350ffcee6475cfd61d24b5a153fd750300df82bdad56be75646b54
description: Securely retrieves external images and prevents unauthorized requests for user credentials.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# IMAGEPROXYURL

Securely retrieves external images and prevents unauthorized requests for user credentials.

## Use

`<apex:image value="{!IMAGEPROXYURL("http://exampledomain.com/pic.png")}"/>` and replace http://exampledomain.com/pic.png with your image.

## Tips

- Use IMAGEPROXYURL for all images hosted on servers you don’t control.
- The rendered image URL can change at any time. Don’t copy and paste it anywhere.
- Don’t use the rendered image URL outside of Salesforce.

![Function Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Function Example

```
<apex:image id="salesforce-twitter" 
value="{!IMAGEPROXYURL("https://pbs.twimg.com/profile_images/1014182734606897153/JfveQU3Z_400x400.jpg")}" 
   alt="Salesforce on Twitter" />
```

This IMAGEPROXYURL function retrieves and displays an image from Twitter’s image host, an external source. This function loads the Salesforce Twitter profile image over HTTPS. This function also prevents the image from making unauthorized requests for user credentials.