I have got a client who I did a great website for a year or so ago however he has just sold his business and as part of the deal he wants me to take the website down. He has however agreed to allow me to use the website on my portfolio so I essentially want to be able to block all entries except from entries from my domain name, is this possible? I was thinking the best solution will be .htaccess but I am not the best at .htaccess so any advise would be awesome.
Asked
Active
Viewed 2,708 times
1 Answers
1
Something like this should work. Put it in the directory that requires the denial. I would suggest an alternative method though; perhaps moving the site to your own server.
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName OnlyFromUNO
<Limit GET>
order deny,allow
deny from all
allow from .domain.com
</Limit>

user3818079
- 38
- 5
-
This didn't seem to work for me :( I just get a 500 error each time. Any ideas? – Sam Jay Heaton Sep 04 '14 at 20:28