stop people viewing source and css

Joined
12 Feb 2006
Posts
17,633
Location
Surrey
Been doing a site for smone last month or so. Had lots of emails with her, all of which have had almost immediate reply, i finally finish the site, ask for the final payment which is only £35, and she disappears and has for a week now. Im not a really paranoid person as im sure she is just having a personal problem but got me thinking that she could get me to do a site, when its done copy the source and css and then bugger off paying me nout.

So is there a way i can protect these from being viewed? just incase say for future work when its a lot of money and obviouls ydon't want someoen doing this

thanks guys
 
The only way I could think of is to stop anyone directly linking, viewing or saving the image files for the site via some kind of fancy .htaccess scripting? No-idea where you would have to begin though, sorry!
 
only solution... don't upload it to the internet to begin with.

next best solution, get a contract signed stipulating that you own copyright to all content created until full payment is received.
 
The browser has to see the HTML and CSS to be able to render it, there's no way around that. You can never stop someone viewing it short of not putting it on the internet to begin with.
 
The browser will only render the HTML/CSS so the potential code stealer will not be able to see and server-side code such as PHP,ASP etc - I suppose it depends on what sort of work you have produced. I know the code I produce at work (ASP.NET) would not be able to be reproduced just by looking at the client-side HTML.

Does the client have access to the actual source?
 
Has she paid some money already?

The best way around this was a trick a friend used to use. He'd send his clients an interactive flash version of the site so they could debate layout,colours etc... He made it just using a collection of screenshots etc.

He'd then, upon final payment, release the full code and site to them.
 
Yeah I'd go with the "just send screen shots" approach - unless the website was very heavily server side coded in which case I'd let them just view the site.
 
I put time dependent code in everything I do that isn't being managed by an account director.

I got ripped off a while back by a company who had to return to me a couple of weeks later with their tails between their legs when the flash files I'd created for their site started coming up with a professional but quite clear time's up message...

Arf.
 
paulsheffII said:
I put time dependent code in everything I do that isn't being managed by an account director.

I got ripped off a while back by a company who had to return to me a couple of weeks later with their tails between their legs when the flash files I'd created for their site started coming up with a professional but quite clear time's up message...

Arf.
Surely code, such as this, is easy to remove by them?
 
jdickerson said:
Hehe. Any tips then?
The online Ioncube encoder is great - cheaply mangle PHP files so they're not editable by anyone - so you're not handing clients the source code.

Mangle is, of course, the technical word for the process ;)
 
Mammalian said:
Been doing a site for smone last month or so. Had lots of emails with her, all of which have had almost immediate reply, i finally finish the site, ask for the final payment which is only £35, and she disappears and has for a week now. Im not a really paranoid person as im sure she is just having a personal problem but got me thinking that she could get me to do a site, when its done copy the source and css and then bugger off paying me nout.

So is there a way i can protect these from being viewed? just incase say for future work when its a lot of money and obviouls ydon't want someoen doing this

thanks guys

Couldn't you just take the site offline until they pay you :) ?
 
I didn't think of that one. For all the sites I do, I insist that I host them. That was I have total control if they try to screw me!
 
Go with screenshots and a nice image map for navigation :D
That'll screw her up.
 
Back
Top Bottom