Need a standard, installable joomla module that will prevent anyone from connecting directly to a URL controlled by a joomla site.
Sat that we have a stand alone application or two installed that we want controlled by joomla.
Since joomla cannot really control access, we need to build a module that would be installed in joomla as any other add-on. The add-on would allow joomla to control access to a stand alone application as if it owns it.
When a user tries to connect directly to the application, the system needs to check where the connection is coming from.
If the connection is coming from a joomla menu, then allow connection. Perhaps we could have a file at the root of the stand alone application which checks for EXACT referrer or something of that type? Since we cannot modify every application out there, we need to solve this problem. This might be a partial apache and joomla solution.
Perhaps the module allows for a special menu item so that the system does a check. If there is a file with a match at the root of the application, allow access.
If the connection is coming from a direct URL or anywhere other than the proper joomla menu item, then redirect that connection to a URL of my choice.
This must be secure, users cannot bypass this.
This cannot use someone else's existing work, we've been through this too many times.
I need this to be my own code, not dependant on someone else's updates.
It should also be something you can easily update should we move to a newer version of joomla.