Disable git clone, git download & git view

hi!

thanks for such a useful app! I have a question: how can I prevent downloading, cloning and, in general, any viewing of repositories the gitea using the linux console (terminal)? I want the ability to clone and download / view to remain only through the Gitea web interface

Cloning repositories can’t be done through the web interface, although downloading a snapshot can be done that way.

It would probably be possible to disable Git-protocol access, but it would not be easy.

hello. your question is nonsense. you can always do from the terminal the same as through the web interface. you might have better responses if you tell us exactly what your problem is and what your are trying to achieve

the question is in unrestricted access to repositories. I want the ability to clone and download / view to remain only through the Gitea web interface

There is no ‘unrestricted’ access, unless you’ve configured it that way. If you mark a repository as ‘private’, it will only be accessible to logged-in users who have been given permission to see it. This is true for access via the Git protocols (what you refer to as ‘linux console (terminal)’), and for the web interface.

While it is probably possible to disable Git-over-SSH access to your Gitea server, disabling Git-over-HTTPS would be more difficult. Since it’s also not possible to ‘clone’ a repository via the web interface, I don’t think your goal is achievable.

1 Like