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

Update:

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 ?

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,040 views 26 12
Join discussion

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