diff --git a/doc/conf.py b/doc/conf.py
index 4a6328224d4442c577831f3c7c2c39afc19378d6..92213e9e1d996bd5472b3b2c2b75fb9130869fc1 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -112,9 +112,16 @@ linkcheck_ignore = [
     # really broken, see gaudi/Gaudi#156
     r"http://gaudi\.web\.cern\.ch/gaudi/doxygen/master/index\.html",
     # linkcheck has trouble with this sort of Indico link with anchors! Any better solution than this?
-    r"https://indico.cern.ch/event/1160084/#",
+    r"https://indico\.cern\.ch/event/1160084/#",
+    r"https://twiki\.cern\.ch/twiki/bin/view/LHCb/FAQ/DaVinciFAQ",
 ]
 
+linkcheck_anchors_ignore = [
+    "^!",
+    "^L[0-9]+",  #  Gitlab line number anchors will cause a failure
+]
+
+
 # THE CODE BELOW CAN BE USED TO GENERATE HTML VERSIONING OF THE DOCS
 # COMMENTED TO TEST THE DEPLOYMENT OF THE WEBSITE