Can I use php in some way to insert text in an url when the page is loading. My problem is that I bought a script that is encoded with ioncube. In the footer of the page there is a tracker to statcounter.com witch is inserted by the ioncube code. I want to prevent the site to be tracked by the script seller as it is non of his business to track my site. So what I want to do is to insert text in the statcounter.com link, something like statcounterxxx.com to stop the tracking.
Can you edit the file that it is located in? If so, just remove it from the footer. However, if it's in ionCube's Terms of Service, I would be careful about removing it.
Thanks Fash, I can edit the file yes, but I cant remove it because its encoded together with other stuff so I dont know what is what. Ioncube would not care about this, it is a script bought from a 3rd party.
Just use the ob_ function list, grab all the content, then str_replace to alter the tracker code. I don't see a problem with removing or altering a third party a tracker, but if it's pointing to the script developers site then you should ask them to remove it. <?php // top of the script, or htaccess perpend file ob_start (); // start script code echo 'this is just some junk!'; // end script code // bottom of the script, or htaccess append file $data = ob_get_contents (); ob_end_clean (); $data = str_replace ( 'junk', 'text', $data ); echo $data; ?> PHP:
Hmm. I am not sure that changing the output code after it is prosessed by ioncube is against their TOS. The ioncube code will not be altered, it is the content that is decoded by ioncube that will be altered.
Any modifications to encoded files is pretty clear, without limitation clarifies it further and strictly forbidden finishes it off nicely.
Yes it does. But actually I cant alter the encoded file anyway, it will be corrupted if i try. So it must be sometihng from outside that change the output, not the file. But the problem is solved anyway, I will not use that script.