homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

How to stop sites from linking to my stylesheet?

5+ Year Member

Msg#: 4497923 posted 7:15 pm on Sep 20, 2012 (gmt 0)

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?



WebmasterWorld Senior Member 10+ Year Member

Msg#: 4497923 posted 7:56 pm on Sep 20, 2012 (gmt 0)

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.


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

Msg#: 4497923 posted 2:05 am on Sep 21, 2012 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved