News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Private SMF Installation, Hidden from public view

Started by whappd, August 17, 2006, 06:16:22 PM

Previous topic - Next topic

whappd

I've done some preliminary searches and haven't found anything quite like what I'm looking for yet, so I'm hoping that maybe someone here will be able to point me in the right direction.

I'm looking to set up a private SMF, and obscure it from public access in the following manner:
- Install SMF at hxxp:subdomain.domain.com/subfolder/ [nonactive]
- Create Login page at hxxp:login.domain.com/ [nonactive]
- If a user attempts to access hxxp:subdomain.domain.com/subfolder [nonactive] and is not logged in, redirect to hxxp:login.domain.com [nonactive]
- Perform all authentication within the hxxp:login.domain.com [nonactive] subdomain so that users who are unable to successfully log in will never see the full forum URL

Does anyone have some insight as to whether or a way of accomplishing this exists?

Elmacik

This may help;
Open index.template.php and add to the very top, below ?> add this:
if ($context['user']['is_guest']) header("Location: http://login.domain.com");

So if user is logged, he/she will browse the forum normally. But if thats a guest and not logged in, he/she will be reidrected to the login page.
Home of Elmacik

whappd

Thanks! It's not the entirety of what I'm looking for, but it definitely helps. :)

Advertisement: