Solved

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

Posted on 2010-09-11
6
249 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:panagiotiss
Comment Utility
you can create a folder anywhere to your joomla installation
0
 
LVL 4

Assisted Solution

by:Joomstrup
Joomstrup earned 166 total points
Comment Utility
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:panagiotiss
Comment Utility
you can use joomi
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Accepted Solution

by:
slatton earned 167 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now