Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Restricting access on ccgi
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Restricting access on ccgi
Restricting access on ccgi
28-04-2010 7:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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?
Message 1 of 5
(1,085 Views)
4 REPLIES 4
Re: Restricting access on ccgi
29-04-2010 9:00 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
Gabe
Message 2 of 5
(474 Views)
Re: Restricting access on ccgi
29-04-2010 11:35 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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?
Would you happen to have a link to a Beginner's Guide article/posting that's suitable for the current platform?
Message 3 of 5
(474 Views)
Re: Restricting access on ccgi
29-04-2010 12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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:
So your .htaccess code would look something like:
Passwords are sent in plain text, as with ftp.
Gabe
#!/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
Message 4 of 5
(474 Views)
Re: Restricting access on ccgi
04-05-2010 1:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
OK, thanks, I'll take a look.
Apologies for the delay in responding.
Apologies for the delay in responding.
Message 5 of 5
(474 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Restricting access on ccgi