Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Regular Coder
    Join Date
    Aug 2012
    Posts
    116
    Thanks
    0
    Thanked 25 Times in 25 Posts
    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?

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    172
    Thanks
    64
    Thanked 2 Times in 2 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe I should rephrase. I do not need to hide it, just make it unrecognizable, maybe through javascript or php.

  • #5
    Regular Coder
    Join Date
    Sep 2011
    Posts
    327
    Thanks
    3
    Thanked 35 Times in 35 Posts
    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.

  • #6
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have seen examples using Javascript and php. I just don't know how to write the code.

  • #7
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,465
    Thanks
    0
    Thanked 633 Times in 623 Posts
    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/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •