Do not follow external links

I am using LibreOffice as part of my anti-spam system to convert a large
variety of files to PDF (that is later processed by other tools).

It works well except when the file is HTML and contains external
links. LibreOffice will wait indefinitely, trying to load the external
links, while it does not have acces to them.

Is there a way I can tell LibreOffice to not try to load external links?
It could be a global configuration or a parameter at command line (but I
could not see it).

Of course, I am running LibreOffice headless.

Thanks in advance,

Olivier

<https://whatofhow.wordpress.com/2013/12/02/stealth-mode/>

Stephan Bergmann <sbergman@redhat.com> writes:

Is there a way I can tell LibreOffice to not try to load external links?
It could be a global configuration or a parameter at command line (but I
could not see it).

<https://whatofhow.wordpress.com/2013/12/02/stealth-mode/>

I have tried, but it does not seam to work, at least when loading an
HTML document: LibreOffice still tries to make an outgoing connection.

To be more specific, it tries to follow the link in the following (I
slitly modified the syntax, hping it can come through):

[td align="right">[a href="javascript:GoTofff();">[INPUT onclick="return
GoTofff()" border="0"
src="http://BAD_PLACE/site/sites/default/files/submit_icon.gif"
type="image" Value="submit">[/a>[/td>

Best regards,

Olivier

I can't reproduce any http access when loading such a html document into LO and exporting it to pdf. If you have a working example that doesn't honour the "stealth mode" setting, best file an issue at <https://bugs.documentfoundation.org/> with the details (and let me know the issue ID, please).

Stephan Bergmann <sbergman@redhat.com> writes:

Stephan Bergmann <sbergman@redhat.com> writes:

Is there a way I can tell LibreOffice to not try to load external links?
It could be a global configuration or a parameter at command line (but I
could not see it).

<https://whatofhow.wordpress.com/2013/12/02/stealth-mode/>

I have tried, but it does not seam to work, at least when loading an
HTML document: LibreOffice still tries to make an outgoing connection.

To be more specific, it tries to follow the link in the following (I
slitly modified the syntax, hping it can come through):

[td align="right">[a href="javascript:GoTofff();">[INPUT onclick="return
GoTofff()" border="0"
src="http://BAD_PLACE/site/sites/default/files/submit_icon.gif"
type="image" Value="submit">[/a>[/td>

I can't reproduce any http access when loading such a html document into
LO and exporting it to pdf. If you have a working example that doesn't
honour the "stealth mode" setting, best file an issue at
<https://bugs.documentfoundation.org/> with the details (and let me know
the issue ID, please).

Thank you Stephan. The bug ID is:

https://bugs.documentfoundation.org/show_bug.cgi?id=115166

Olivier