FB Mediagraph, hotlinking
-
Many WP users use Cloudflare for CDN. One feature CF has is hotlinking protection. But, when hotlinking protection is turned on, the image does not display in FB’s media graph output.
Cloudflare does provide a workaround for this but allowing certain images to be hotlinked to. In order for this to work, those images need to be within a folder with a specific name. See below for CF’s excerpt.
Can I allow hotlinking to specific images?
You can allow certain images to be hotlinked by placing them in a directory named hotlink-ok. The hotlink-ok directory can be placed anywhere on your website.Example: To allow example.com to use logo.png from %{name}, put logo.png in a new folder called hotlink-ok on %{name}. Any images in the hotlink-ok folder will not be checked for hotlinking.
Some examples of URLs that will not be checked for hotlinking:
https://%{name}/hotlink-ok/pic.jpg
https://%{name}/images/hotlink-ok/pic.jpg
https://%{name}/hotlink-ok/images/pic.jpg
https://%{name}/images/main-site/hotlink-ok/pic.jpgThe page I need help with: [log in to see the link]
- The topic ‘FB Mediagraph, hotlinking’ is closed to new replies.