cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting access on ccgi

Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Restricting access on ccgi

A quick trawl through the forum indicates that restricting access to PHP stuff on the ccgi platform is not supported directly, and can only be achieved by a workaround that sounds rather involved. Have things improved at all with the new platform and PHP5?
4 REPLIES 4
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: Restricting access on ccgi

If you mean restricting access by using .htpasswd control or 'deny from all' then, yes those will work for .php files on the new ccgi platform.
Gabe
Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Re: Restricting access on ccgi

Thanks Gabe. I guess I mean "using anything that's easy", really - I've never tried securing anything on Linux/Apache before. I got the impression that there's a way using a .htpasswd file but that it didn't work with php files so I didn't look too closely.
Would you happen to have a link to a Beginner's Guide article/posting that's suitable for the current platform?
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: Restricting access on ccgi

I think the <a href="http://usertools.plus.net/tutorials/?id=5">PUG tute</a> and linked password generator should work, except that you get your path by running a cgi script from a browser:
#!/bin/bash
echo "Content-type: text/plain"
echo
pwd

So your .htaccess code would look something like:
AuthUserFile /share/storage/0X/us/username/protectedfolder/.htpasswd
AuthType Basic
AuthName "enter password"
Require valid-user

Passwords are sent in plain text, as with ftp.
Gabe
Boxersoft
Rising Star
Posts: 132
Thanks: 20
Fixes: 1
Registered: ‎25-07-2009

Re: Restricting access on ccgi

OK, thanks, I'll take a look.
Apologies for the delay in responding.