Web Hosting Talk







View Full Version : need help geocities sites hotlinking to files geocities/yahoo refuses to remove


MarcD
01-20-2002, 03:56 AM
Hello all having a big problem i have alist of geocities sites 15
that are all hotlinking to files on my server
now 1st off i have a no hot link script that i have inplace on about 150 of thefiles i provide that are larger that 1 meg however i have over 1500 files and would take days to add all of them to this scripts which we are slowly getting finished now the major problem is somehow these sites got the index of many of the file folders and are providing direct links ie

site.com/r6/patches/a1sdf2asdf.exe

instead of going threw our normal script files.php?link=cat&fileid=352aa4

which the php script i can stop them

now i have contacted geocities numerous times over a 2 month period and they have not removed the sites and just send me a canned send us this info for copryight violation letter

now we have over 1500 files and only about 150 of them were created by us and are copyrighted under us the rest we do not own copyrights to we just provide the public domain for them i emailed them explaining this and they just sent me back another canned repeat copryight letter

anyone have any ideas of who else to contact get involved with i dont have the funding to spend on a lawyer for htis site

this site already hits 60-80 gigs a month and im trying to clean it up on bandwith and usage
and this is a substantial dent in that i believe

anyone have any contacts or other ways
i have emialed abuse@yahhoo and at geocities support and posted on there forums and message boards all to no avail


they are juist plain ignoring and not responding to me


thanks im at my wits end on this one

Mafukie
01-20-2002, 03:59 AM
get a better anti-leech script, OR change the file download ID.
:cool:

MarcD
01-20-2002, 04:05 AM
hehe the script works fine its the direct index links that they got somehow i cant stop

they are linking to them directly out of the folder

ToastyX
01-20-2002, 04:15 AM
Perhaps move the files around from time to time. That'll annoy the linkers and the people that visit their sites with the frequent broken links.

JustinK
01-20-2002, 04:18 AM
If mod rewrite is installed/enabled you could use that in the directory with the files so if the request for the file isn't coming from your domain then it'll replace the file or just make it not load.

MarcD
01-20-2002, 04:45 AM
ty i will look into doing that
if i have any ?'s can i contact u
never messed with the mod rewrite before

priyadi
01-20-2002, 05:21 AM
I hope this is correct:


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yoursite\.com [NC]
RewriteRule \.(gif|jpg|jpeg|png)$ - [F]


Add or modify more extensions depending on your requirement.

danushman
01-20-2002, 05:39 AM
This may be *too* simple:


Why not move all the hotlinked files to a new directory, or rename the one they are in right now, and change your links. Do this every few days and maybe even write a script to do it for you and problem solved ;)

MarcD
01-20-2002, 08:51 AM
Originally posted by Refsoft
This may be *too* simple:


Why not move all the hotlinked files to a new directory, or rename the one they are in right now, and change your links. Do this every few days and maybe even write a script to do it for you and problem solved ;)

cant do that cuz the scripts call on them out of the directory each are in a mysql database and if we changed the location/folder name we would have to change all the file location on the scripts also

ty for the rewrite thing

Helena
01-20-2002, 10:47 AM
Hi, I have a similar problem, so I hope it's OK that I use the same thread.

I too have a huge problem with directlinking. In my case it's a postcard service. Renaming won't work, because people won't be able to pick up their cards.

I have an Apache/Linux server and know that I can use .htaccess to block such requests. The problem is that the card HTML files and GIF's are in the same folder. What I need to do is block external requests for the GIF's, but not for the HTML files. That I have managed to solve, but when I set it up like that the GIF's don't show up on the HTML files even though I have stated that access from my own domain is OK.

In short: I want to block external direct requests for the GIFs, allow requests for the HTML files and allow the GIFs to show up on those HTML files (generated by my script).

Can it even be done? If so, a small example would be most welcome, since I'm a newbie at this! :-)

Thanks in advance!

~ Helena

MarcD
01-20-2002, 11:02 AM
helena a couple months back we found a script that was for images, it would block images being requested outside of your server and display a like this image is being illegally used or whatver u wanted if someone else tried to use it i will try and track it down for you

Helena
01-20-2002, 11:57 AM
Hi, thanks for the reply! It would be great if you'd find it again. I'm still interested in .htaccess examples though.

Best wishes,
Helena

JustinK
01-20-2002, 09:03 PM
hmmm lemme get out the mod rewrite code I found and messed with a few days ago (took a bit of digging to find it...).


Here it is, please note, if anyone has any links to places that go into some good detail about the syntax of these things, I need it! I absorb a bit of it, but still don't quite know enough.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.ext/ [NC]
RewriteCond %{REQUEST_URI} !^/stolen.gif [NC]
RewriteRule \.(gif|jpg)$ http://www.youdomain.ext/stolen.gif [R]


That replaces the image with the stolen.gif image. You may not need the
RewriteCond %{REQUEST_URI} !^/stolen.gif [NC]
line, that's just there because I have that image in the same directory so it needs to know that them getting that image is ok.

GeorgeC
01-20-2002, 09:09 PM
mod_rewrite is definitely your answer. Shameless plug ahead, but you can check out this article: http://javascriptkit.com/howto/htaccess10.shtml

JustinK
01-20-2002, 09:10 PM
Oh sure... after I spend 2 hours searching forums and the web now you can just simply post a link up to what I spent all the time looking for. ;D Guess asking is easier than searching. :)

keta
01-20-2002, 09:55 PM
i used this...works prefectly > http://faq.solutionscripts.com/misc/hot_linking.html

ochiba
01-20-2002, 10:10 PM
I used it for my site and had a lot of problems with browser incompatibility. Only Nscape 4.7 and I.E. 5.0 and 5.5 were able to download the files. Nscape 6.0 treated the file as though it were coming from a different browser as well as older versions of I.E...


I think you have to be specific on the link itself. And if you use frames... fugeddaboutit.

hope that info helps.
ochiba

MilkMan
01-26-2002, 11:30 PM
Hmm...

Tried that but when the address (being protected) is brought up as:
www.domainname.com
the images are not loaded
typing in
www.domainname.com/
the images load ok

Seems that / is the only thing different problem is anything on the first page shows broken images because the / is not there

priyadi
01-27-2002, 02:18 AM
Try removing the last / on your RewriteCond directive. That should fix it.

MilkMan
01-27-2002, 11:12 AM
Just tried that, didn't work