|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Limiting Access
I'm running:
Windows 2000 Apache2 (Windows Binaries) I need to: Restrict anyone from directly viewing any images stored unless they are linked in a webpage. http://www.somelink.com/image.jpg will not show, but if that same link is in an <img> tag, it should show. I have tried: Restricting access w/ .htaccess files w/ apache. Yes, my server supports them. I was able to lock them down, but I did just a good job that you have to have a password to view them at all, and they won't display in <img> tags. No good, obciously. Any help on the matter would be greatly appreciated! |
|
#2
|
|||
|
|||
|
RE: Limiting Access
you cant.
you can however, restrict viewing to people who are logged in, or to those people who you have started for example a php session for. for example, your img tags would look like this <img src="image_server.php?image=foo.jpg"> then and you would want to do some security checks as well, in case someone manually entered somthing like this into the url ?image=../../usr/etc/pwd |
|
#3
|
|||
|
|||
|
RE: Limiting Access
Red this article. It has the code you want.
http://html.codenewbie.com/articles/html/1453/htaccess__Image_Hotlinking_Prevention-Page_1.html |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Limiting Access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|