Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

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 ?

jredmond 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 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.

Like Jarrett Goetz likes this

@jredmond Anything you know of that's changed with Bitbucket Cloud in order to prevent read-only users from cloning repos?  Thanks.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events