Is it possible to disable https cloning?

Hi there

Is there a way to disable the download of a gitlab project through http and https?

I would like it to be available through ssh only.

I tried using the settings below in git config:

However, even though the project is set as private, I still manage to be able to download the git archive through a simple “composer update” command

Thank you for your help

I haven’t tried out myself.

However, according to this link, it seems that GITLab admin could turn off https cloning.

And it seems like the feature was completed like 2 years ago: