Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Bridged forum |
|
Author |
|
al0000
Joined: 29 Jan 2007 Posts: 24
|
Posted: Thu 05 Apr '07 4:10 Post subject: Bridged forum |
|
|
Hello!
Ok, what i want is simple and i am sure someone will get back to me with the solution quicky.
I have a Joomla installation on directory www.mysite.com
I have an SMF installation on directory www.mysite.com/smf
/smf should ONLY be accessible via www.mysite.com (internaly) and not directly
In simple words, if you try to open www.mysite.com/smf you should get an access denied message, or something like that.
Is this possible? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 05 Apr '07 14:53 Post subject: |
|
|
I don't know SMF, but you could check the reffer
----
edit: I tested it and made a new code. the old one did work.
But this one do
Code: |
<?php
$path=split("/",$_SERVER['HTTP_REFERER']);
$allowed_sites = array( "www.mysite.com", "mysite.com");
if(! in_array($path['2'],$allowed_sites) ){
echo 'NOT ALLOWED TO ACCESS';
}
?>
|
|
|
Back to top |
|
|
|
|
|
|