Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-21-2013, 05:09 AM   PM User | #1
rmjr
New to the CF scene

 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rmjr is an unknown quantity at this point
How to hide the iframe link (not the iframe)

I need to make the iframe link not recognizable. I offer this as a subscription site and I can't have the real link visible.

<tr>
<td height="100%">
<iframe src="ebindx.html" frameborder="0" width="100%" height="100%"></iframe>
</td>
</tr>

I do not program, but I can make sure things are put in the right place.
rmjr is offline   Reply With Quote
Old 02-21-2013, 06:35 AM   PM User | #2
Brandnew
New Coder

 
Join Date: Aug 2012
Posts: 50
Thanks: 0
Thanked 11 Times in 11 Posts
Brandnew is an unknown quantity at this point
i'm may not be answering this correctly, but i don't think you can 'hide' the link if you're referring to the src found in the iframe element:
<iframe src="ebindx.html" frameborder="0" width="100%" height="100%"></iframe>

Based on someone else' response, "The user agent can't load the iframe's content without knowing where to get it from."
__________________
1 Corinthians 15:3-4 / Ephesians 2:8-9 - What or Who are you living for?
Brandnew is offline   Reply With Quote
Old 02-21-2013, 03:07 PM   PM User | #3
joliett89
Regular Coder

 
Join Date: Jul 2011
Posts: 172
Thanks: 64
Thanked 2 Times in 2 Posts
joliett89 has a little shameless behaviour in the past
If you want to hide a link by putting it in an iframe, you can block it in robots.txt. You can't hide the iframe itself. It would be like trying to hide <body> or <head> tags in your website's code.
joliett89 is offline   Reply With Quote
Old 02-21-2013, 04:25 PM   PM User | #4
rmjr
New to the CF scene

 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rmjr is an unknown quantity at this point
Maybe I should rephrase. I do not need to hide it, just make it unrecognizable, maybe through javascript or php.
rmjr is offline   Reply With Quote
Old 02-21-2013, 09:07 PM   PM User | #5
Frankie
Regular Coder

 
Join Date: Sep 2011
Posts: 284
Thanks: 3
Thanked 32 Times in 32 Posts
Frankie is an unknown quantity at this point
Quote:
Originally Posted by rmjr View Post
Maybe I should rephrase. I do not need to hide it, just make it unrecognizable, maybe through javascript or php.
But if you make it unrecognizable, how will the browser know which page to load into the iframe? What do you need it for?
__________________
Frank

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
Frankie is offline   Reply With Quote
Old 02-22-2013, 01:19 AM   PM User | #6
rmjr
New to the CF scene

 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rmjr is an unknown quantity at this point
I have seen examples using Javascript and php. I just don't know how to write the code.
rmjr is offline   Reply With Quote
Old 02-22-2013, 02:02 AM   PM User | #7
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,448
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by rmjr View Post
I have seen examples using Javascript and php. I just don't know how to write the code.
None of the examples you have seen work - anyone can easily decode them using any web browser.

Also using JavaScript will prevent those without JavaScript using your page while not preventing anyone from viewing the output of the script that the browser is using to determine what to display.

A PHP version wouldn't work at all because it has to generate the HTML before sending it to the browser.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Tags
hide url, iframe

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:51 PM.


Advertisement
Log in to turn off these ads.