Solved

How to keep custom php pages that are outside the template unviewable until logged in?

Posted on 2010-09-11
6
252 Views
Last Modified: 2012-05-10
I have a couple of custom pages in PHP outside of the template. Is there a folder in Joomla that I can put them in so that they cannot be viewed unless a user is logged on to the site? Or something to that effect?

Thank you in advance.
0
Comment
Question by:colonelblue
6 Comments
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 33652376
you can create a folder anywhere to your joomla installation
0
 
LVL 4

Assisted Solution

by:Joomstrup
Joomstrup earned 166 total points
ID: 33652562
Joomla! cannot govern access to external php files no matter where you put them in your Joomla! folder structure. To use Joomla! for access control you need to turn your php files into either a component or a module. Whether it should be a component or a module depends on the functionality of your files.

As an easy start you can take one of the modules that allows inclusion of php or plug ins like JIncluder or DirectPHP, add your code there and see if that works. You can find the extensions at the JED (http://extensions.joomla.org)
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 33652697
you can use joomi
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Accepted Solution

by:
slatton earned 167 total points
ID: 33656570
Change the permissions to the individual pages and documents that are outside of the Joomla management system by going into Dreamweaver and:
  1. Select your website ("Remote View")
  2. Right click the document that you want to limit view of
  3. "Set Permissions..."
  4. Type in 700, 600, or 200
  5. Save
0
 
LVL 13

Assisted Solution

by:StormITSolutions
StormITSolutions earned 167 total points
ID: 33656643
Alternatively

You could create articles which are viewed only by logged in users

then use the inbuilt {loadposition  x} code within your article
this enables modules to be included within articles

YOu can enable this via the plugin admin in the backend

NExt copy your php files directly into a custom code module
allowing you to run the php directly from a module

Then assign the module to position X within your article

Then you can have php scripts with the joomla registration in effect so external non logged in users cant see them or view them

Storm
0
 

Author Comment

by:colonelblue
ID: 33657725
Thank you.
Hey guys, I went into my web host files manager.
Made a folder.
Gave it a 700 permissions.


Now when you try to access any files in that folder you get a:
403 Permission Denied

But the pages work as include in Joomla when the user is logged on.
This should be secure enough right?
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question