Disable downloading or cloning of a public repository - Is it possible

I would like to showcase some of the projects that I have worked on and I would like to disable cloning or downloading of the repository if I make it public. Is that possible


So far one of the approaches suggested involved disabling ssh protocol. Does this mean that I will have to remove my ssh keys ? Also to prevent users from downloading the repo I would have to block  /scm/ URL pattern . blocking user patterns is that possible ? Any help regarding this would be appreciated ...


1 answer

1 vote
Daniel Wester Community Champion Mar 11, 2017

You could disable the ssh protocol and block the /scm/ URL pattern but people would still be able to copy and paste... 

Thanks that is acceptable. Could you tell me how I can 

1-disable ssh protocol

2-and block the /scm/ URL

could you tell me what the /scm/ url is ?

Jim Redmond Atlassian Team Apr 04, 2017

You've put the "bitbucket-server" category on here, which implies that you're hosting your own instance of Bitbucket (rather than using bitbucket.org). If that's the case, then you should be able to restrict access to SSH with a firewall, and there should be some straightforward method to restricting /scm/ URL access. As Daniel mentioned, though, people would still be able to copy and paste.

If you're using Bitbucket Cloud, then this is not possible.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

655 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you