PDA

View Full Version : Help!



scootertopia
02-01-2004, 01:05 PM
I have come under attack by a person who runs some warez and porn sites. he has hot linked to my websites using <IFRAME> and has cost me 12 gigs of bandwidth just yesterday. I have been in contact with my hosting companies and one has been able to block referrers from the offending sites, others cant and require me to pay for the bandwidth. Does anyone know how to deal with this. I have contacted several law enforcement offices local and up to and including the FBI, none are interested. I am beside myself because this individual is effectively shutting my business down. any advice would be greatly appreciated

cyanide
02-01-2004, 03:24 PM
HI scootertopia,

I assume you're meaning they are hotlinking your images ?
If its' the site in your sig, you're on apache, so .htaccess will do the trick.

try this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]


note: replace domain.com with your domain

To create an .htaccess file...
open notepad and save as htaccess.txt (you won't be able to save as .htaccess)
put the code in there as is, replacing domain.com with your own.
upload in ASII to your root directory and change the name to .htaccess

scootertopia
02-01-2004, 03:47 PM
Thanks for your time and advice
actually they are linking the entire pages like this:
<IFRAME src="http://www.scootertopia.com/index.htm"
width="17%" height="1%" name="I16" frameborder="0" scrolling="no"></IFRAME>

he has multiple of these on several pages. wil the above fix still work?
Thank you
Mike

cyanide
02-01-2004, 03:53 PM
Yes it should work

If you have cpanel control panel, there is a feature right inside of it

cyanide
02-01-2004, 04:16 PM
Hi scooter,

Oops, sorry just noticed, I missed something
here it is revised:


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|php|html)$
http://www.yourdomain.com/images/getlost.gif[R,NC]
You'll notice the second last line, I added php and html . you'll need that for the page, depending on the extension of your page.
And if you're feeling adventurous, you can add the last line, which you can make. An image to display anything you want, like "This site stole my page"
And that image will replace what they're trying to steal.

YOu might want to take a screen shot of the page that's stealing your page.
You may also want to send a harshly worded email to their ISP. Any respected ISP will jump on it.
You can do a search here www.whois.sc