| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2005 Location: Bangalore
Posts: 1,271
![]() ![]() ![]() ![]() ![]() | Hiding embed links? I have added many videos to my site using youtube and other video sharing sites using the code they have provided.Anybody who views my site can view that code by looking at the source.I want to hide that code.I do not want my viewers to know from which video sharing sites i have embedded videos. How do i do this? Please help. |
| |
| | #2 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | youtube video logo always shows you might want to get hosted at magnify.net and create your own logo and embed/place it to replace youtube logo. or you need this script http://www.clip-share.com/ |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jul 2005 Location: Bangalore
Posts: 1,271
![]() ![]() ![]() ![]() ![]() | Actually i am not bothered about the you tube logo. I just do not want them find the embed link. For example i have embedded a video from stage6.com When a user sees the source code he gets the id of the video and embeds it in his site saying he uploaded it.I want to prevent that. |
| |
| | #4 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | use some basic encryption on it http://www.codelock.co.nz/ |
| |
| | #6 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | well depending on your user's know how try this one for free html encyrptor http://javascript.about.com/library/blenc1.htm then no right-click http://www.codelifter.com/main/javas...ghtclick1.html but it's not that tough to crack |
| |
| | #8 (permalink) |
| New Member Join Date: Oct 2007
Posts: 8
![]() | This script will parse whatever is in the file FILE_NAME.php invisibly onto the page using javascript. <script language="javascript" type="text/javascript"> window.onload = initJavaScript; function initJavaScript() { getPage(); } function getPage(){ var xmlhttp1=false; //Clear our fetching variable try { xmlhttp1 = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object… } catch (e) { try { xmlhttp1 = new ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object } catch (E) { xmlhttp1 = false; } } if (!xmlhttp1 && typeof XMLHttpRequest!='undefined') { xmlhttp1 = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest } var file1 = 'FILE_NAME.php'; //This is the path to the file we just finished making * xmlhttp1.open('GET', file1, true); //Open the file through GET, and add the page we want to retrieve as a GET variable ** xmlhttp1.onreadystatechange=function() { if (xmlhttp1.readyState==4) { //Check if it is ready to recieve data var content1 = xmlhttp1.responseText; //The content data which has been retrieved *** if( content1 ){ //Make sure there is something in the content variable document.getElementById('video').innerHTML = content1; //Change the inner content of your div to the newly retrieved content **** ????: NamePros.com http://www.namepros.com/programming/390790-hiding-embed-links.html } } } xmlhttp1.send(null) //Nullify the XMLHttpRequest return; } </script> <div id="video"></div> |
| |
| | THREAD STARTER #9 (permalink) |
| Senior Member Join Date: Jul 2005 Location: Bangalore
Posts: 1,271
![]() ![]() ![]() ![]() ![]() | Thanks a lot for the code.It is working. I just want the code to put in FILE_NAME.php so that it displays content only when it parsed by the above code. If a user directly tries to access FILE_NAME.php then he should not be able to view the content. |
| |
| | #10 (permalink) | ||||
| Senior Member Join Date: Oct 2005 Location: Kent ~ U.K.
Posts: 3,209
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | smagik, please remember to use [html ][ /html] and [code ][ /code] and [ php][ /php] Thanks. ????: NamePros.com http://www.namepros.com/showthread.php?t=390790 http://www.namepros.com/programming-announcements.html
__________________ Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net. | ||||
| |