Question: My company is about to move to Subversion and the initial plan was to put a large amount of archive material in the repo, as well as our current work. The idea was that no one would ever want to checkout the archive but would instead browse it via their web browser. 

We're concerned, however, that someone might accidentally checkout the whole archive (can't trust all of our users). Since our hosting agreement for the server has relatively low bandwidth limits, checking out the entire archive could blow the limit and cost us a lot of cash.

Is there anyway of providing read-only access to the archive via a web browser but prevent anyone from checking it out? I had a look at the available repository hooks and couldn't find anything useful. Any other ideas about how we could achieve our goal?

Answer: 
Have you checked out [ViewVC](http://www.viewvc.org/)? It can provide a nicely-formatted read-only view of your repo, and is quite configurable.
One way of doing this is through path-based authorization. This way you could setup the archives to be viewed only by those people in your team. Here is a page from the [Subversion Red Book](http://svnbook.red-bean.com) about Path-Based Authorization:

<http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html>

You will be able to set the permissions using what's called an authz file. Just make sure to test this with different users. Play with the different settings. Once the authorization settings are to your liking, then you can open your firewall port to the WAN.

Subversion has 2 servers, svnserve (svn:// protocol) and Apache-WebDAV (http:// protocol). I recommend that you use [VisualSVN](http://visualsvn.com/server/), if you choose the HTTP protocol. I have a product that handles the svnserve server. It's called [PainlessSVN](http://painlesssvn.com).

There's a couple places where you may be able to get help.

[WanDisco Subversion Community](http://subversion.wandisco.com/)

[Subversion Forums](http://www.svnforum.org/)