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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

692 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot