I want to allow my SVN folder(repository) only to specific IPs. Is it possible to just put .htaccess file to allow specific ip and deny all?
Asked
Active
Viewed 1,008 times
0
-
1How do you access your SVN repository? SVN+SSH? svnserve? Apache? – Albin Sunnanbo Nov 27 '10 at 06:23
-
3What he said - way too little information here. When you say "folder", do you actually mean "repository"? What protocol are you using (what he said)? Seriously, one-line questions like this suck. If you can't be bothered to think about how to ask a *specific* question, why should anyone spend time trying to answer it? – timdev Nov 27 '10 at 06:45
2 Answers
0
Yes it is possible. Put the following lines in your .htaccess
file.
Order Deny,Allow
Deny from all
Allow from 192.168.1.1

zellus
- 9,617
- 5
- 39
- 56
0
There are some thorough answers here.

Community
- 1
- 1

Ken Redler
- 23,863
- 8
- 57
- 69
-
couldn't actually get this through search, however thanks a lot. This may help my issue. – CIF Nov 29 '10 at 18:19