views:

1346

answers:

4

How to disable source tab in Google Code? I don't want any random users to look at my code.

Before you say that this can't be done, that Google Code is by default open source. Someone managed to do it, somehow.

Edit: Before you downvote me further, take a look at the link I provided. It's possible to do it, despite whatever you want to say. And I want to know how.

+5  A: 

The whole point of Google Code is that it is for open source. That means everyone is allowed to see it. If you don't want people looking at your code, use some closed source hosting site.

Zifre
+18  A: 

I don't want any random users to look at my code.

You can't prevent people from downloading the source code. Google's SVN repositories are open to anonymous browsing and checkout. For example, in the project you cited (the StackOverflow clone), notice that

svn checkout http://cnprog.googlecode.com/svn/trunk/ cnprog-read-only

works just fine for downloading the source.

If you don't want people looking at your source code, don't use a free public-hosting service. Setting up a local svn repository is very easy, in any case: here's how you'd go about setting one up and adding stuff to it.

John Feminella
+2  A: 

You can replace tabs with Wiki pages (for example, to point to your GitHub repository), but you can't prevent access to the Google SVN server.

Tim Sullivan
+15  A: 

In your GC page Administer|Tabs then check the hide checkbox next to Source. Your code will still be available via SVN though.

anon