how i can protect my css file to display on another site

Discussion in 'CSS' started by mhmdkhamis, Oct 8, 2007.

  1. #1
    welcome every body

    i have problem

    my css file to my design is showing in another site

    the thief take mu css file and display it from my site

    how i can protect it to dont display in another site

    thanks
     
    mhmdkhamis, Oct 8, 2007 IP
  2. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I understand correctly, you could fix this problem by blocking the thieving sites IP address in the .htaccess file.

    You can read about Blocking IP address with the .htaccess files here.

    This will deny them access to that file.
     
    ChaosFoo, Oct 8, 2007 IP
  3. mhmdkhamis

    mhmdkhamis Well-Known Member

    Messages:
    1,097
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    145
    #3
    great thanks

    that which i mean :D

    i will try do it :)
     
    mhmdkhamis, Oct 8, 2007 IP
  4. mhmdkhamis

    mhmdkhamis Well-Known Member

    Messages:
    1,097
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    145
    #4
    put the ip adress here

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>

    or any place in the htaccess file
     
    mhmdkhamis, Oct 8, 2007 IP
  5. mhmdkhamis

    mhmdkhamis Well-Known Member

    Messages:
    1,097
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    145
    #5
    i do it but he still can play my css file from my server

    like

    
    <link rel="stylesheet" href="http://www.mydominname.com/style.css" type="text/css" media="screen" />
    
    
    Code (markup):
     
    mhmdkhamis, Oct 8, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    If you're using includes for your CSS, change your main css filename and then go get a very obscene/graphic/nasty image and in style.css do this..

    body { background-image:url(deformed-private-part.jpg); }
     
    soulscratch, Oct 8, 2007 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ooooooooh brilliant. Nasty. Everything one could love.

    But really, one has to always use this htaccess file to block IPs? This guy, if he were persistant, could keep skipping from IP to IP couldn't he? Causing the rightful owner to have to keep an ever-growing list of banned IPs?

    Maybe another thing (temporarily) is have have some screwy things added to the CSS which makes the page unattractive, while having inlined CSS in the HTML (normally not recommended) to correct/override them. The thief's html of course doesn't have the correcting inlined css... it would be more work to add them in than to just copy the correct css file and host it on his own friggin server.
     
    Stomme poes, Oct 9, 2007 IP
  8. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah, they could keep changing IP addresses, but it would be a big hassle. The domain name would have to resolve to a different IP address every time. To update the DNS servers takes some time, thus the site would be down for a couple of hours every time you made the change.

    The person linking to the CSS file must not be very smart, because they could just copy the file and store it on their own server. No big deal. There would be nothing anyone could do (short of hacking) to fix the problem. I personally think changing the background image would be my preference, just because I like messing around with people.
     
    ChaosFoo, Oct 9, 2007 IP