Hiyya, Not sure if this can be done..but a site is directly linking my CSS file to there website...They use to be "hotlinking" all my images but I placed some code in .htaccess to stop them from doing this. I sent them a C&D letter but to no avail. So is there a way I can stop them from directly importing my CSS file? Its so frustrating! Thanks, Debra.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC] RewriteRule \.(gif|jpg|js|css)$ - [F] Try that in your htaccess...replace mydomain.com with your own, and it'll prevent hotlinking of gif, jpg, js, and css files.
I would suggest taking it up with their host or ISP. Use whois to get the domain details. Bandwidth theft is irresponsible and unacceptable.
Blocking their linking shuts them up faster than contacting and waiting for replies. I had a friend from Adelaide in college...says all you guys drink is Coopers down there.
Damn straight, none of that export-quality Fosters rubbish. I agree blocking hotlinking is the way to go but I would also pursue it further; at least to try and get an apology out of them. Maybe that's just me though.
good that you have resolved the problem... i believe in cpanel there is also an option for hotlinking protection?
Any way to prevent hotlinking on a Windows server with IIS, since IIS does not support .htaccess?? It's a dedicated server, so I have admin priveleges.
Better still, Use a re-write condition - but take 5 mins to re-hash the CSS to make their site look like sh*t! You know - Font-size to 100pt, H tags to 1px, BG color, color, Borders, underlines etc etc. I bet they would change it even faster than simply blocking it!
Your code will also block's images from being linked or indexed by search engines. If i may just modify this: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC] RewriteRule \.(js|css)$ - [F]
That's what I would do. Pass them a different CSS file that you've specifically designed to ruin their site. Maybe some pr0n backgrounds... it's been done before with XML/RSS thieves and works
That's because you've got to be one lazy grabber to actually hotlink to someone's css code... I mean images are one thing, but a css code is saved after it's downloaded once... Can't really be the largest bw expense. But I would have to agree, no need to block it, do something malicious and take a picture and post it on here lol.
i know your problem is solved, but i like the idea of having a css file designed specifically for that fu**er who was leeching bw off your site, and from that css, make the website look like p*rn or what have you. OR-- report the matter to authorities and get the site blocked with a very mind pleasing apology letter from those losers!