diff --git a/build-telemac.bat b/build-telemac.bat
index 0879cbe5b2e960bb6f890bfb9171e3a2798244c3..c1051fd766e4a86a49526967c336d2b8cd33d6b5 100644
--- a/build-telemac.bat
+++ b/build-telemac.bat
@@ -252,7 +252,7 @@ rem ***
 rem MED
 rem ***
 :build_med
-call :download %med% "https://files.salome-platform.org/Salome/medfile/med-4.1.1.tar.gz" || exit /b 1
+call :download %med% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/443/download" || exit /b 1
 set cmake_config_options=-DHDF5_ROOT_DIR:PATH=%external_path%/%hdf5% -DMEDFILE_BUILD_TESTS:BOOL=OFF -DMEDFILE_INSTALL_DOC:BOOL=OFF
 if %compiler% == intel (
   rem MED libraries cannot be built as shared libraries with Visual Studio generator as they
@@ -356,7 +356,7 @@ rem ****
 rem AED2
 rem ****
 :build_aed2
-call :download %aed2% "http://www.opentelemac.org/index.php/component/jdownloads/finish/39-manual-installation-sources/2126-aed2m/0?Itemid=55" || exit /b 1
+call :download %aed2% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/444/download" || exit /b 1
 echo Building libaed2...
 set install_dir=%external_path%\%aed2%
 rd /s/q %install_dir% 2>nul
@@ -377,7 +377,7 @@ rem ****
 rem GOTM
 rem ****
 :build_gotm
-call :download %gotm% "http://www.opentelemac.org/index.php/component/jdownloads/finish/39-manual-installation-sources/2127-gotm/0?Itemid=54" || exit /b 1
+call :download %gotm% "https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/package_files/445/download" || exit /b 1
 set cmake_config_options=-DBUILD_SHARED_LIBS:BOOL=ON -DGOTM_USE_NetCDF:BOOL=OFF -DGOTM_EMBED_VERSION:BOOL=OFF
 call :cmake_build %gotm% || exit /b 1
 exit /b 0