Short.io provides link cloaking for replacing a long URL with the short one in the browser address bar. For example, a link like "https://www.facebook.com/page/posts/248409103110" is replaced with "https://yourdomain.com/post." The feature's purpose is to hide essential parts of original URLs, such as UTM parameters and affiliate codes.
The most frequently cloaked websites among Short.io users are:
- Google Tools.
- Amazon S3.
If you are trying to cloak links with these services, the error "Cloaking is forbidden by destination URL with X-Frame-Options header" may occur. It means that the service you are trying to hide forbids cloaking for the links, containing rendering in a frame, iframe, or object. Since Short.io applies iframe for link cloaking, you can't hide the original URLs for some services. The main reason why some apps forbid link cloaking is to provide clickjacking protection.
LinkedIn is among the applications that don't allow using link cloaking for the links. Sometimes you inevitably need to hide LinkedIn links to save important data. For this, you need:
1. Go to a Facebok post you want to share.
2. Click the ellipsis icon > Embed.
3. Choose Get code.
4. Click IFrame.
5. Extract the link from the embed code from the src value.
iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fshortio.links%2Fposts%2F2484091031888110&show_text=true&width=552&height=532&appId" width="552" height="532" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe
6. Shorten a link > Cloak it.
This way, the link will be shortened, and you will successfully hide essential values.
What did you learn?
- hide facebook links
- cloak facebook link that contains important data
- why link cloaking is forbidden
- facebook short links