![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Littleton, Colorado. USA
Posts: 558
|
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
__________________
http://TrueBabes.com/ |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Don't know off hand but this may help you : http://www.askapache.com/?s=htaccess |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
do you own both domain one and two?
http://www.awmzone.com/services - contact me with more details at celebempire{at}gmail/dot/com
__________________
Make a bank with Chaturbate - the best selling webcam program ![]() ![]() ![]() Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email: ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Littleton, Colorado. USA
Posts: 558
|
Yes, but they are not on same server.
__________________
http://TrueBabes.com/ |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jul 2013
Posts: 89
|
Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain1.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain2.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L] |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Littleton, Colorado. USA
Posts: 558
|
Thanks, I will try that today.
__________________
http://TrueBabes.com/ |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: May 2012
Posts: 124
|
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 |
![]() |
![]() ![]() ![]() ![]() |