Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1583 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

how to make sure a link cannot be removed from source code?

Thread title: how to make sure a link cannot be removed from source code?
Reply  
Page 2 of 3 < 1 2 3 >
    Thread tools Search this thread Display Modes  
05-08-2009, 11:42 PM
#11
46Bit is offline 46Bit
Status: Member
Join date: Mar 2009
Location: Yorkshire
Expertise: Web Development
Software:
 
Posts: 275
iTrader: 10 / 100%
 

46Bit is on a distinguished road

Send a message via MSN to 46Bit Send a message via Skype™ to 46Bit

  Old

Originally Posted by wvb View Post
Ok, whatever you say, you're going to remake php. Congrats. Call mom for a kiss
Kissing down a phone line would be physically impossible, thanks though. Maybe I should stop now.

Reply With Quote
05-08-2009, 11:43 PM
#12
wvb is offline wvb
Status: Junior Member
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 48
iTrader: 1 / 100%
 

wvb is on a distinguished road

Send a message via MSN to wvb

  Old

I'm so sorry

Reply With Quote
05-08-2009, 11:45 PM
#13
wvb is offline wvb
Status: Junior Member
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 48
iTrader: 1 / 100%
 

wvb is on a distinguished road

Send a message via MSN to wvb

  Old

Well, seems you have free time I will ask you something:


To the above poster, if you misunderstood what he was asking, fair enough, else try to learn what include actually does
Who asked you to evaluate if my suggestion was valid or not? Is one like another, and can be valid as other.

Reply With Quote
05-09-2009, 12:16 AM
#14
46Bit is offline 46Bit
Status: Member
Join date: Mar 2009
Location: Yorkshire
Expertise: Web Development
Software:
 
Posts: 275
iTrader: 10 / 100%
 

46Bit is on a distinguished road

Send a message via MSN to 46Bit Send a message via Skype™ to 46Bit

  Old

Originally Posted by wvb View Post
Who asked you to evaluate if my suggestion was valid or not? Is one like another, and can be valid as other.
I'll write this patronisingly because I'm fed up of you trying to defend your answer via technicalities: Welcome to TalkFreelance. The software we are using to post these comments is called vBulletin. It's a discussion forum, therefore the idea is that it's a forum (a public meeting or assembly for open discussion) for people to discuss (To converse or debate concerning a particular topic) things in.

Therefore, by posting here you performed an action similar to that of someone appearing on a political talk show - you presented your ideas for discussion by an audience. I made the post following yours, which meant that you were the poster above my first post in this thread, hence why I referred to you as such.

In your next post you seemed to be hacked off at me for pointing out that include wasn't what he was looking for. The fact that you've as of yet not bothered to defend your argument and instead have just tried to have a go at me for pointing it out almost proves that you, although you do appear to be in a rather severe state of denial, know your answer wasn't relevant too.

If you wish to explain why include would be useful for the OP, I would (and I'm sure he/she would too) be interested in hearing it.

Sources for definitions:

Reply With Quote
05-09-2009, 12:45 AM
#15
wvb is offline wvb
Status: Junior Member
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 48
iTrader: 1 / 100%
 

wvb is on a distinguished road

Send a message via MSN to wvb

  Old

First, I think you dont catched it: buddhi225 asked how to make links not removable form source code, not to discuss if include() can be useful or is or not a PHP function.

So what the hell are you talking about technicalities?? I just purposed the include() function as a possible way to do it.
I have not offended or insulted you, so be respectful and use the nick of people. I'm not an object. And is not a ego question. I don't need to feel i'm the best one. I just want respect, and this way to refer me is disrespectful.
And my nick is shorter than "to the above bla bla", so better use it instead of "the above" phrase.

I just proposed include() as one of the way to take the objective, not to discuss about if include is valid or not.

So lets make clear some points:
  • I suggested include() as one of the solutions.
  • I DO NOT asked for any review or anything. So if you have something to say about buddhi225's question, answer him, if not, avoid it.

So you started to dispute my answer and that is what led us to this discussion.

So next time please avoid to comment other people solutions (or in any case do it via PM to avoid offtopic content) and make your proposals (if you have any).

--------------------------------------------------------------------------------------------------------------

And about include() as useful way to resolve the main question:

I propose use it to include some remote file.
This way, the owners of the websites that buddhi225 created will not be able to edit the link directly.
Of course if the have the source code, they will be able to edit anything, included the include(), but the link directly will not be able to be edited.

And buddhi225 can also add some type of license prohibiting modify the part of the include().

Reply With Quote
05-09-2009, 01:00 AM
#16
46Bit is offline 46Bit
Status: Member
Join date: Mar 2009
Location: Yorkshire
Expertise: Web Development
Software:
 
Posts: 275
iTrader: 10 / 100%
 

46Bit is on a distinguished road

Send a message via MSN to 46Bit Send a message via Skype™ to 46Bit

  Old

Originally Posted by wvb View Post
And about include() as useful way to resolve the main question:

I propose use it to include some remote file.
This way, the owners of the websites that buddhi225 created will not be able to edit the link directly.
Of course if the have the source code, they will be able to edit anything, included the include(), but the link directly will not be able to be edited.

And buddhi225 can also add some type of license prohibiting modify the part of the include().
My god! Thankyou! An actual reason. It only took god knows how many posts. There we are then, sorted.

Reply With Quote
05-09-2009, 01:04 AM
#17
wvb is offline wvb
Status: Junior Member
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 48
iTrader: 1 / 100%
 

wvb is on a distinguished road

Send a message via MSN to wvb

  Old

You want answers? Get answers! Graphic and all!

Reply With Quote
05-09-2009, 03:43 PM
#18
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

What's to stop anyone just removing the include call? To be fair, it is a very poor "solution" if one can call it such.

As for better alternatives, there a number of technologies out there which might help but I think you might be approaching the problem wrongly. If you really, really don't want people to be able to edit the source then make it a hosted solution. If that is not possible, then you'll have to jump through hoops (think Zend encoder, ioncube and such like) or just submit to the open-source philosophy and ask that the links remain in the source.

Reply With Quote
05-09-2009, 04:06 PM
#19
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

There is no way to "force' content on an open source script (open source means the source can be modified). There are services like ioncube that will make your PHP code unreadable and therefore unmodifiable, but I'm sure there are ways past that. Otherwise stick to .NET or another compiled language (although .net and any programming language can be reverse engineered).

It comes down to this: Processors do whatever the hell programs tell them to do, and they only accept commands in a uniform way. With that said, it is possible to reverse engineer a program because they are commanding the processor in this uniform manor. So no program is can for certain place anything anywhere if you are dealing with technical people.

edit:
As for WVB's solution, it will not work. As Sal pointed out, there is nothing stopping the user from simply removing the inculde. Any validation would require placing a known value in memory (aka a variable), which can be easily forged on the client's end by even a semi-competent programmer. If a file can be included, the source can be grabbed from it. So embedding a few curtail functions on your side would prove useless.

Reply With Quote
05-09-2009, 04:28 PM
#20
wvb is offline wvb
Status: Junior Member
Join date: Apr 2009
Location:
Expertise:
Software:
 
Posts: 48
iTrader: 1 / 100%
 

wvb is on a distinguished road

Send a message via MSN to wvb

  Old

They can also remove encoded PHP (and includes) if we are talking about people who gets the source code.

So establish a license that prohibits modify some part of the code could be the solution (assuming that buddhi225 can not host the files, and therefore he can't control them directly).

Reply With Quote
Reply  
Page 2 of 3 < 1 2 3 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed