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
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.
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
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):
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); }
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.
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.