Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

How to stop sites from linking to my stylesheet?



7:15 pm on Sep 20, 2012 (gmt 0)

5+ Year Member

We've discovered a few scraper sites linking to stylesheets on our domain ... is there anything we can do (windows server) to block sites from doing this?


7:56 pm on Sep 20, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

You might change/rename your own stylesheet, and add the following to the one they're using:

background:url(DO_NOT_INFRINGE.jpg) right top no-repeat;

Where DO_NOT_INFRINGE.jpg is a picture on your own server with a message such as "this site is stealing our stylesheets. Visit my site instead", etc.


2:05 am on Sep 21, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

Or add .css to the list of extensions you've got in your current anti-hotlinking routine, if it ends in a flat-out [F] or 403.

If you link to a ferocious "no hotlinks" image, you might enjoy doing something analogous with the css. Rewrite (not redirect!) to a CSS that says, in full, something like

body {margin: -2em; font-size: 800%; font-family: "Comic Sans"; color: #F0F; background-color: #0F0;}

I just made that up, but you get the idea.

Featured Threads

Hot Threads This Week

Hot Threads This Month