I have 1 page that calls content from other pages inside another dir.
index.php?call_mod=1
the problem is if you were to type in the adress to that page, you could see it’s contents or the page would try to perform it’s function, this is very bad!
[url]http://www.mysite.com/moduledirectory/modulename.php
if you type that into the address bar, you will get the page. How do I stop this?
will chmod do this, if so which one allows scripts to call teh page but keeps a surfer from getting to the page?
I’ve tried using sessions and if statements and also defined(blah) but if you hit the page that sets teh session or definition, you can then locate the page, kinda useless.
what’s the way to do this? i thought about maybe an if else that would checking the referring page, and if it’s not the index page then you would be redirected, but I am not sure the best way, so could give me some advice?
thx!