![]() |
HTAccess Question
I'm trying to see if there is a way to do this with HTACCESS.
I have a file in http://domainone.com/images/ I want to link into an HTML page in the members area of http://domaintwo.com/members/ Thats easy... but my question is - can I do it, but also have an htaccess file in http://domainone.com/images/ that will prevent that same file from being linked to any other domain or accessed directly (type in). ? Thanks in advance Jimmy |
Don't know off hand but this may help you : http://www.askapache.com/?s=htaccess |
do you own both domain one and two?
http://www.awmzone.com/services - contact me with more details at celebempire{at}gmail/dot/com |
Yes, but they are not on same server.
|
Code:
RewriteEngine on |
Thanks, I will try that today.
|
or you can just completely hide the source of the image or whatever the content is instead of relying on referrer and do in a script like
<?php header("content-type: image/jpeg"); echo file_get_contents("http://whatever.com/whatever.jpg"); ?> or just do remote reading like that. Header is only necessary based on the datatype naturally if its same server different domain you can just do local path but i dont think that is the case with you in your case I don't think referrer will make a difference |
All times are GMT -7. The time now is 01:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc