Link to home
Start Free TrialLog in
Avatar of ingerul
ingerul

asked on

Restricting access to files

How can I get the name of the page that requested a image or script file? I want to provide files only to certain pages. For example, in my page 'http://server/path/page1001.php' I have the code:

<html>
<script language="JavaScript" src="http://server/path/scripts.php?id=2"></script>

<body>
<img src="http://server/path/images.php?id=4">
</body>
</html>

I want that only the page with the url 'http://server/path/page1001.php' to display my files ('scripts.php?id=2' and 'images.php?id=4').
How can I do that? Is there a way? It has to be one!
ASKER CERTIFIED SOLUTION
Avatar of UnifiedMedia
UnifiedMedia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of carchitect
carchitect

not posible...
atleast in ths manner....
regards
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial