Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to make sure a link cannot be removed from source code?
Old 04-29-2009, 11:37 AM how to make sure a link cannot be removed from source code?
Skilled Talker

Posts: 83
Trades: 0
Hello,

I want to display a link to my website on the websites i have created. However, i do not want anyone to be able to remove this link from the source code. How would i proceed? Any thoughts?

thanks!

Matt
killerwhale65 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-29-2009, 11:40 AM Re: how to make sure a link cannot be removed from source code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The only way is to not give them access to the source code.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-29-2009, 12:58 PM Re: how to make sure a link cannot be removed from source code?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
You can't hide source code.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 04-29-2009, 02:43 PM Re: how to make sure a link cannot be removed from source code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by rogem002 View Post
You can't hide source code.
I don't think that is what is being asked. It seems the question is, is there a way for me to link to my website in a way that my clients won't be able to remove it?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-29-2009, 02:55 PM Re: how to make sure a link cannot be removed from source code?
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
Frankly I'd say the best way to keep people from removing the link is to do a good job on the site. I know this isn't what you're asking, but the happier your customer, the more they'll want to promote your work. You can't really keep them from removing stuff from their website, so the next best option is to make them love your work.
__________________
Will Anderson

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Old 04-29-2009, 06:20 PM Re: how to make sure a link cannot be removed from source code?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Make them sign a contract saying they cannot remove the link back. Put a clause (sp) that if they do remove it they have to pay money.

That way they are legally required to link back.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 04-29-2009, 06:52 PM Re: how to make sure a link cannot be removed from source code?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
If people don't want the link there, they are going to remove it. Even going through all the trouble of writing up a contract, that users probably won't even read, wouldn't stop a determined person.

If you wanted to you could try to obscure the code that generates the link, but honestly like Will said, the best way to ensure people give you recognition is to do a good job.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 04-29-2009, 07:21 PM Re: how to make sure a link cannot be removed from source code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Personally, I never place links to my website on websites I've built unless I did the website for free, or close to free. I've had clients link to me, however, because they appreciated the work I did for them. I think that is how it should be.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-29-2009, 07:29 PM Re: how to make sure a link cannot be removed from source code?
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Quote:
Originally Posted by killerwhale65 View Post
Hello,

I want to display a link to my website on the websites i have created. However, i do not want anyone to be able to remove this link from the source code. How would i proceed? Any thoughts?

thanks!

Matt
1) I can right click and save your link target. (This will give me the URI.)
2) Hiding your source code is impossible, I can list a few ways to circumvent them.
2.1) I can disable JavaScript to stop your anti right click or denial of Ctrl-U
2.2) I can save your page locally and open it with notepad.
2.3) I can get your source from an HTML validator. (This may be stopped by JS, but that can be turned off.
3) The only way to stop users from "stealing" the links is to not put them up there.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 04-30-2009, 12:06 AM Re: how to make sure a link cannot be removed from source code?
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
You can hide the source code using JavaScript. The browser will still be able to read the source code, but people can't.

If you want to encrypt your source code you can visit this site http://jdstiles.com/java/encrypt.html and follow the directions. Basically, you enter you source code and press encrypt. JavaScript will appear and you replace your normal HTML with the JavaScript.

There are some problems with this. For example, most people have javascript enabled in their browser, but if for some reason they don't, they will not be able to view you page. Another disadvantage is that a small percentage of browser will not be able to read the code, however, the major ones such as IE and FF will.

Because of this I would recommend only compiling the part of the code that needs to, which in this case would be you links that need to be hidden.

Hope this helps
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
Old 04-30-2009, 06:53 AM Re: how to make sure a link cannot be removed from source code?
Skilled Talker

Posts: 83
Trades: 0
Dear all,

Thank you all for your responses. There are some nice thoughts here. To be honest, most people indeed have no problem with the link as they appreciate the work i have done. But there is 1 client who has changed the link to his own website, making it read: "Webdesign by my_own_website_name", as if he has done all the work himself. I have spent 3 weeks on this, so i don't think this is fair, and that made me put the question here. Yes i have been paid for this, but really not much is you see what is regularly charged. So i think a small link back is not too much to ask.

But well, it's only 1 client and there seems to be not much that can be done (except for the encrypting with javascript, i will check that out). Thanks all for your thoughts!

Matt
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 04-30-2009, 09:48 AM Re: how to make sure a link cannot be removed from source code?
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
Most of the products you buy anywhere are made by a company other than the one whose name is on the product. If you get paid for your time and your work is good then why would you even care? I know it feels like a personal attack but it really isn't worth any effort. You get nothing for the time and energy you spend on this.
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Old 04-30-2009, 10:19 AM Re: how to make sure a link cannot be removed from source code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
But well, it's only 1 client and there seems to be not much that can be done (except for the encrypting with javascript, i will check that out). Thanks all for your thoughts!
That is a horrible idea.

Once, for fun, I invented a way to do this. You can see in THIS THREAD why it is pointless.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-01-2009, 07:17 AM Re: how to make sure a link cannot be removed from source code?
Skilled Talker

Posts: 83
Trades: 0
Quote:
Originally Posted by reli4nt View Post
I know it feels like a personal attack but it really isn't worth any effort.
My thoughts as well
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 05:11 PM Re: how to make sure a link cannot be removed from source code?
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
Before I talked about encoding with javascript. This may not be the best idea, but I believe encoding with php is very effective. You can try it as well. For example <?php echo 'hello world' ?>encodes to

<?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsbDIgVzJy bGQiOw0KPz4=';
eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKT skX1g9c3RydHIoJF9YLC
cxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdf cmVwbGFjZSgnX19GS
UxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0 wOyRfWD0wOw=='));?>

you can try it
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 05:57 PM Re: how to make sure a link cannot be removed from source code?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If you try to force your clients to include your link it's a good way to ensure you'll have less clients in the future. Most clients will be happy to let you include a link back to your site if you ask them and leave them happy with your work. Some won't and they have the right not to link back to you. It's their site. They can do whatever they want with it.

If you want people to know it's your design show it in your portfolio on your site.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-04-2009, 06:40 PM Re: how to make sure a link cannot be removed from source code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
<?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsbDIgVzJy bGQiOw0KPz4=';
eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKT skX1g9c3RydHIoJF9YLC
cxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdf cmVwbGFjZSgnX19GS
UxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0 wOyRfWD0wOw=='));?>
Equally pointless. It still needs to be outputted to the browser, which needs normal code in order to display it. It is always going to be readable without much effort. A quick copy and paste will make a brand new, editable file.

I agree with Vangogh. Forcing your clients to display your link is not a good idea. It is kind of rude that the client is pretending to have designed it. Technically that is illegal, because the code and design does actually belong to you, if you created both. They have the right to use it as they wish, but they can't claim your copyright. But what are you going to do?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-04-2009, 10:51 PM Re: how to make sure a link cannot be removed from source code?
wt.canton's Avatar
Novice Talker

Posts: 5
Name: James Canton
Trades: 0
Quote:
Originally Posted by rogem002 View Post
Make them sign a contract saying they cannot remove the link back. Put a clause (sp) that if they do remove it they have to pay money.

That way they are legally required to link back.
This is probably the only way to enforce this, and even then, I imagine it's rather difficult.
wt.canton is offline
Reply With Quote
View Public Profile
 
Old 05-05-2009, 05:27 PM Re: how to make sure a link cannot be removed from source code?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Of course having that in the contract could also lead to a reduction in clients. Usually when you design a site for someone else they own the copyright. I agree if the client changes the link to say they designed the site you should be able to stop them since they didn't design the site.

It may end up being more trouble than it's worth though to get them to remove that bit.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-08-2009, 04:38 AM Re: how to make sure a link cannot be removed from source code?
markAtRitetek's Avatar
Experienced Talker

Posts: 32
Name: Mark Hudson
Location: Atlanta, GA
Trades: 0
If there's javascript on the site, I'd say the best way to do it would be to throw a line in the javascript that adds an anchor element to the site in the place you want it. This would be pretty easy if you have a framework, but doable without one.

Once you do that, you could use the YUI compressor to compress your javascript and it would be difficult for the client to figure out where it is. Not only that, but most likely the compressor will reduce the size of your JS file as that is what it is designed to do...

If you right click and "view source" then the link will not appear in the source as it was added dynamically after the page loaded. The downside to this is that if javascript were enabled (not too often) then the link would not be there. Also, if there's no other javascript on the site it wouldn't be "camouflaged" too well.
__________________
Mark Hudson
Ritetek Design

Please login or register to view this content. Registration is FREE
markAtRitetek is offline
Reply With Quote
View Public Profile Visit markAtRitetek's homepage!
 
Reply     « Reply to how to make sure a link cannot be removed from source code?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.90313 seconds with 12 queries