Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Protecting access to .php files
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
- :
- Protecting access to .php files
Protecting access to .php files
18-09-2007 12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have just read the posting at
http://community.plus.net/forum/index.php?topic=465.0
that tells me I cannot use .htaccess/.htpasswd to protect .php files.
Is there any other way of restricting access to .php files or am I stuck with them being publicly accessible?
http://community.plus.net/forum/index.php?topic=465.0
that tells me I cannot use .htaccess/.htpasswd to protect .php files.
Is there any other way of restricting access to .php files or am I stuck with them being publicly accessible?
Message 1 of 5
(2,202 Views)
4 REPLIES 4
Re: Protecting access to .php files
18-09-2007 12:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
There is no way to protect access to php files on the ccgi server.
The only option you have is to add some form of authentication protection at the beginning of each file so it will only be run if say the user is logged in.
The only option you have is to add some form of authentication protection at the beginning of each file so it will only be run if say the user is logged in.
Message 2 of 5
(346 Views)
Re: Protecting access to .php files
18-09-2007 10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter There is no way to protect access to php files on the ccgi server.
The only option you have is to add some form of authentication protection at the beginning of each file so it will only be run if say the user is logged in.
Thanks - can you point me to a reference on how to do this? (I'm a PHP beginner.)
Message 3 of 5
(346 Views)
Re: Protecting access to .php files
18-09-2007 10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Are you writing your own code or trying to install an existing package like a forum?
If you own code, do a google search for php authentication or look at www.hotscripts.com for authentication scripts. They should then have a method to protect php files.
If you are installing someone elses code then I suspect you will not be in a position to modify it without a lot of php experience.
If you own code, do a google search for php authentication or look at www.hotscripts.com for authentication scripts. They should then have a method to protect php files.
If you are installing someone elses code then I suspect you will not be in a position to modify it without a lot of php experience.
Message 4 of 5
(346 Views)
Re: Protecting access to .php files
18-09-2007 11:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter Are you writing your own code or trying to install an existing package like a forum?
If you own code, do a google search for php authentication or look at www.hotscripts.com for authentication scripts. They should then have a method to protect php files.
If you are installing someone elses code then I suspect you will not be in a position to modify it without a lot of php experience.
Thanks for that. I am writing my own code - learning to use php as I go. That sounds like a useful site to know about. I'll take a look there and see if I can find something suitably simple.
Message 5 of 5
(346 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
- :
- Protecting access to .php files