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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 07-22-2013, 04:13 PM   #1
JimmyStephans
Confirmed User
 
JimmyStephans's Avatar
 
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/
JimmyStephans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-26-2013, 06:20 AM   #2
Barry-xlovecam
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
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-28-2013, 04:05 PM   #3
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-28-2013, 05:16 PM   #4
JimmyStephans
Confirmed User
 
JimmyStephans's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Littleton, Colorado. USA
Posts: 558
Yes, but they are not on same server.
__________________
http://TrueBabes.com/
JimmyStephans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-29-2013, 01:07 AM   #5
dunhill
Confirmed User
 
dunhill's Avatar
 
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]
Use this on your both domains to allow hotlinking from each other.
dunhill is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-29-2013, 08:05 AM   #6
JimmyStephans
Confirmed User
 
JimmyStephans's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Littleton, Colorado. USA
Posts: 558
Thanks, I will try that today.
__________________
http://TrueBabes.com/
JimmyStephans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-29-2013, 01:23 PM   #7
alcstrategy
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

Last edited by alcstrategy; 07-29-2013 at 01:29 PM.. Reason: simplifying
alcstrategy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.