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!
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
atleast in ths manner....
regards