stolen content

Q&A about the latest versions
Post Reply
User avatar
Jan_T
Posts: 45
Joined: Tue Aug 21, 2007 11:15 pm
Location: Berlin
Contact:

hello,

i have trouble with some people using my flashpanos as an inframe on their website.
is there a possibility, to make panos work only on certain domains?
i think i can remember, this was discussed on the forum earlier...

regards, jan
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

The original URL and stolen URL please
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
User avatar
hum@no.id
Posts: 945
Joined: Sat Sep 09, 2006 10:35 pm
Location: Dark side of the Moon
Contact:

Your flashpanos - it's simple SWF unit (one flash movie file)

where can appear troubles? Use <DIV><IFrame> and much more...

go to http://youtube.com/ - see link example
Gumir J | VR Panoramic Photographer | mobile: +77055717171 | skype: gumirj
website: gumirj.com | google.com/+gumirj | facebook.com/gumirj | twitter.com/gumirj
ThomasK
Posts: 112
Joined: Thu Sep 14, 2006 11:40 am

create a .htaccess file and try this script:

Code: Select all

SetEnvIfNoCase Referer "^http://www.mydomain.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.mydomain.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://mydomain.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://mydomain.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(html|swf|mov|gif|jpa|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>
ErrorDocument 403 http://www.mydomain.com/advertising_for_me.gif
User avatar
Jan_T
Posts: 45
Joined: Tue Aug 21, 2007 11:15 pm
Location: Berlin
Contact:

thanks for all replies!

@ThomasK:
i tried the htaccess thing. works, but:
i do have another domain (http://www.interaktive-fotografie.de) with the same content as my main domain (http://www.totzek.de)
the problem is, that the script doesnt allow my second domain to show the content as well...
can i change the script i a way, that both domains are working, but no other domain?

@hum@no.id:
i do not understand the youtube idea of solving the problem. i am not so much into code-stuff...

@ 360texas:
this is the original Pano on my website: http://www.totzek.de/html/pano02.html
this is the url with the stolen pano: http://sexbomb.ivyro.net/loca1.htm (not working at the moment because of htaccess)

regards, jan
Last edited by Jan_T on Mon Jul 21, 2008 8:04 pm, edited 1 time in total.
User avatar
Roy Reed
Posts: 168
Joined: Thu Apr 19, 2007 10:31 am
Location: London, UK
Contact:

This works in a similar way as ThomasK's .htaccess solution, but allows you to specify domains that are allowed to access the images:

Code: Select all

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(temp|bits)
RewriteRule ^.*$ - [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|mov|swf)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !yourdomain\.com [NC]
RewriteCond %{HTTP_REFERER} !yourotherdomain\.com [NC]
RewriteCond %{HTTP_REFERER} !someoneelseyoulike\.co\.uk [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule (.*) /bits/stolen.gif?/$1 [R,NC,L]
It's a good idea to allow Google and other search engines in as it will help your rankings. Google for htaccess and hotlinking for more info.
User avatar
Jan_T
Posts: 45
Joined: Tue Aug 21, 2007 11:15 pm
Location: Berlin
Contact:

ah! thanks roy.
i changed the code to:

Code: Select all

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/(temp|bits)
    RewriteRule ^.*$ - [L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|mov|swf)$ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !totzek\.de [NC]
    RewriteCond %{HTTP_REFERER} !interaktive-fotografie\.de [NC]
    RewriteCond %{HTTP_REFERER} !someoneelseyoulike\.co\.uk [NC]
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
    RewriteRule (.*) /bits/stolen.gif?/$1 [R,NC,L]
it seems to work...
my domains show their content and "sexbomb" doesnt. (at least on my machine) : http://sexbomb.ivyro.net/loca1.htm
i do not understand the /bits/stolen.gif part. is this a path to gif i can define? how does this work?
what is hotlinking?

thanks very much!, jan
ThomasK
Posts: 112
Joined: Thu Sep 14, 2006 11:40 am

You can use a file, in this case named stolen.gif, to define your message like "Stolen content from JanT" or you can insert something to advertise your services. Just control the path where the stolen.gif is on your server, in this case "/bits/stolen.gif"
Post Reply