NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Hiding embed links?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 11-01-2007, 02:01 AM THREAD STARTER               #1 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,271
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



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.
bbalegere is offline  
Old 11-01-2007, 02:05 AM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
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/
__________________
Nabaza.com - Amaia
weblord is offline  
Old 11-01-2007, 02:15 AM THREAD STARTER               #3 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,271
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



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.
bbalegere is offline  
Old 11-01-2007, 02:22 AM   #4 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
use some basic encryption on it
http://www.codelock.co.nz/
__________________
Nabaza.com - Amaia
weblord is offline  
Old 11-01-2007, 02:25 AM THREAD STARTER               #5 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,271
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



any free alternative?
bbalegere is offline  
Old 11-01-2007, 02:28 AM   #6 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
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
__________________
Nabaza.com - Amaia
weblord is offline  
Old 11-01-2007, 02:32 AM THREAD STARTER               #7 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,271
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



Thanks.
Please reply if anyone knows more about such techniques.
bbalegere is offline  
Old 11-01-2007, 02:50 AM   #8 (permalink)
New Member
Join Date: Oct 2007
Posts: 8
smagik is an unknown quantity at this point
 



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>
smagik is offline  
Old 11-04-2007, 03:57 AM THREAD STARTER               #9 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,271
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



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.
bbalegere is offline  
Old 11-04-2007, 04:28 AM   #10 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
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
Originally Posted by SecondVersion
Use the appropriate code tag (e.g. [ php][/php ] for PHP code, [ html][/html] for html code, and [ code][/code ] for any other code - without spaces of course) to make your code easy to read.
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:09 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger