1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forbid images attachments

Discussion in 'XenForo Development Discussions' started by allewreK, Mar 8, 2014.

  1. allewreK

    allewreK Active Member


    What would I need to extend in order to forbid attachments ? I tried to extend the Attachment model and the attachment controller but the image is broken within posts when I forbid it.

  2. HWS

    HWS Well-Known Member

    If you use XF 1.3 you do not need to disallow external images any more. It features a new proxy system and does not show images directly from foreign servers to your visitors.

    Prior to 1.3 we also had to disable the loading of external images in our threads for security reasons. We showed a simple link to the image instead.
  3. allewreK

    allewreK Active Member

    How could I print this simple link in my custom addon ? Actually, there is an option where when ticked attachments are forbidden to a visitor, but when he is viewing a post forbidden attachments images are not showing up as link, but are showing up as a broken image.

Share This Page