Php hide iframe src

How to hide an iframe url in HTML source code

And it generate new jquery include codes like this to include your scripts with javascript in a external file Also I would suggest you that you include all of your external javascript codes in 1 single js file. Question: How to hide an iframe url in HTML source code.

How to hide an iframe url in HTML source code

How to hide an iframe url in HTML source code.I have two applications one applications get an url of another application into its iFrame,so that it displays in its source code.I dont want to display another application url in the source code.

I think you would need to set the IFRAME URL via JavaScript. The Javascript could then be Obfuscated, so that the URL would not be in plain text. Please see the following link for the obfuscator:

$("#myiFrame").attr('src','http://www.google.com'); 
var _0xc1cb=["\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x2E\x63\x6F\x6D","\x61\x74\x74\x72","\x23\x6D\x79\x69\x46\x72\x61\x6D\x65"];$(_0xc1cb[3])[_0xc1cb[2]](_0xc1cb[0],_0xc1cb[1]); 

You can’t hide it per say, but you can run it through something like TinyURL so that anyone interested would need to go an extra step. Anyway, that’s the only thing I can think of. However, if you are displaying that page in a frame, what’s the harm in having the URL in the source code? There really isn’t a good, foolproof way to prevent someone determined from finding out the location of that iframe page.

Читайте также:  Python начало прошлого месяца

You can create a php script which uses curl to call the url through localhost, then use this script as your iframe source.

If you have an issue with relative links and sub-directories, you can put your curl script inside the sub-directory.

Trying to figure out how to «hide» images and source code, Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort). Client-side code such as

JavaScript Security: Hide your Code?

CAN you hide your browser JavaScript code?Join the full JavaScript course: https://acad.link Duration: 9:59

I have the following iframe code in a topic:

       

Is there anyway to hide the iframe src link? I don’t want users to see the iframe source code.

Is there anyway to hide the iframe src link?

I don’t want users to see the iframe source code.

Sorry, then you shouldn’t be including this iframe at all.

Tools like FireBug would make it extremely easy to analyze the network traffic and see exactly which site the HTML is accessing. So no matter how hard you try to obfuscate your code, bury it under a ton of compressed, minified and God knows what other javascript that dynamically generates and injects this iframe into the DOM, simply by looking at the Network tab of FireBug the client will be able to immediately see the exact HTTP request you have made.

I found a node.js npm plugin that can hide any src=»https://code911.top/howto/*» also content+href — easy to use https://www.npmjs.com/package/location-hide

This works also for php href, src, content it will use everything inside src=»»

You need only node.js for creating the exported files. It´s easy to use even if you don´t know node.js. You can watch youtube guides for installing and using node.js If you create enviroment 1 time you can load cool stuff with npm

And it generate new jquery include codes like this to include your scripts with javascript in a external file

$('[src=\'TNANIuTOLZfmLYwaPDIYhcZDVOWKodqYhysaTeQHFPDhYlDLCOtxZqYmkKAhaSwSgbsYOWlpBzVSBtMZKSfwRqvPSqWVlBBuzHR\']').attr("src", "test/folder/sample.js") $('[href=\'gyXeFnOEvZbgTjLvdZRnsyrfhaXqffkDjcdATTouqpIenCalLRXKamuXEtiKbPGCsNrdQIaqTMTNWsLyLFuxygKytaruWzSjKYMq\']').attr("src", "test/stylesheet/perfect-scrollbar.css") 

Also I would suggest you that you include all of your external javascript codes in 1 single js file. This file you place in the root of your index file that you can make this

Then make right htaccess that nobody can acces this file. You can also make a fake import script for the source code that every body can see. But this file is only a redirect for the real external js file. you make this multiple times as example + use other obfuscation tools. This will protect you from people searching exploits with your javascript codes. I know its no big deal and maybe you can see the jquery include codes if you know how. But anyway its a great protection.

Is there a way to hide elements in IFrame OR any WordPress Plugin, element.style.display = «none»;. hides the element. Reaching the window object of a page inside an iframe. Let’s assume you

How to hide Iframe src?

How to hide the src as shown in below. If the example.php contents php , MySQL functions and forms. So how do I hide the src when some visitor checks view source in the page.

Even if you can find a way to hide the iframe src, the visitor can see it by debug tools such as firebug.

First, the user won’t get the .php-File like you see it on the Server (if you have a PHP-Server). It will get parsed and what will remain is plain HTML. So your user won’t see SQL-Queries, etc.

But what you’re trying to do is impossible. That’s not how HTML works. What you see when you click «show Sourcecode» is exactly what the browser uses to display the Page. So if you won’t deliver a src-value for your iFrame, than the browser won’t be able to show it correctly

In the past I searched also something for this problem and I found a node.js plugin that can protect your code with obfuscation and other stuff. Please read his readme to understand why you can´t Protect JavaScript code for 100% and how you should do it. He explained it very well.

There is also a LIVE DEMO: http://www.forbiddentube.online/samplepage

You import as example your index.html or every other file that fs can read and the output will be like this:

Then in a external js file you can add the generated jquery code that will be generated in a external file: $(document).ready(function() <
var qRlhGXpAjYCmwyVlAnbJmUABkGzIavYdkcVArRvICzLhaeJbbV = document.querySelectorAll(‘[data-wchIyvpKUkArTeyUIZsCecKZRROZZzMNErxvtdIqWGkytjDyhJ=»bCCngxHMRCbEnVtvOWxOqBtKgsYkZEmWzPKybVKvJGtkXTWDnc»]’);
$(‘[data-wchIyvpKUkArTeyUIZsCecKZRROZZzMNErxvtdIqWGkytjDyhJ=»bCCngxHMRCbEnVtvOWxOqBtKgsYkZEmWzPKybVKvJGtkXTWDnc»]’).attr(«src», «_/sample.js»);
$(‘[data-wchIyvpKUkArTeyUIZsCecKZRROZZzMNErxvtdIqWGkytjDyhJ=»bCCngxHMRCbEnVtvOWxOqBtKgsYkZEmWzPKybVKvJGtkXTWDnc»]’).attr(«src», «»).delay( 10000 );
>);

This code will be paste at the end of your crypted file. You should cut it out and paste it directly before your

I used this plugin for my blogs and it works like a charm.

Html code as IFRAME source rather than a URL, Edit 2 (December 2017): use the Html5’s srcdoc attribute, just like in Saurabh Chandra Patel’s answer, who now should be the accepted answer! If

How to Hide empty div file if no url in the iframe?

Quick Question, How to hide this code in php: if there is nothing to show or no link in «src» or unknown?

The problem is, Hence the in .css have padding-top: 56.25%; . All of the box have padding even the iframe is empty.

I hope my explanation is clear to you guys and I’m sorry if its a bit hard to explain.

To understand what I mean here is my current webpage that have a problem: https://donpramis.com/timeline/

Here is the complete code:

Timeline (Beta)

">

" frameborder="0" sandbox="allow-same-origin allow-scripts" allowfullscreen="allowfullscreen">
" alt="Php hide iframe src" />
?>

You can add the Div with iframe after checking the value for src. For example:

Use jQuery to check for the content inside the Iframe. If content does not exist, use hide() to hide the resp-container;

if(!$("#iframeid").contents().find("body").length)

You first need to validate the data. for validating you can use empty check if(empty($row[«iframe_video»]) function. here the code.

How to hide iframe src, It’s quite easy to see the iframe by using IE Developer tools (F12) or Firebug, or the native google chrome inspectors. There’s nothing «hidden»

Источник

How to hide an URL/SRC from iframe?

The browser security logic stops any attempt made by the parent to modify cross-domain content. Solution 1: I think you would need to set the IFRAME URL via JavaScript.

How to hide an URL/SRC from iframe?

As people have said in the comments, something which the browser requires cannot be hidden.

The only thing I can think of that comes close is using HTML Entities:

Sorry but if there was a better way coded into actual browsers then it could be possible. This is probably the closest you’re going to get though.

HTML iFrame hide/show, To hide the iframe (or other HTML element) just add: style=»display:none;» in that HTML tag. Then you can add in the PHP response a

How to hide an iframe url in HTML source code

I think you would need to set the IFRAME URL via JavaScript. The Javascript could then be Obfuscated, so that the URL would not be in plain text. Please see the following link for the obfuscator:

$("#myiFrame").attr('src','http://www.google.com'); 
var _0xc1cb=["\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x2E\x63\x6F\x6D","\x61\x74\x74\x72","\x23\x6D\x79\x69\x46\x72\x61\x6D\x65"];$(_0xc1cb[3])[_0xc1cb[2]](_0xc1cb[0],_0xc1cb[1]); 

You can’t hide it per say, but you can run it through something like TinyURL so that anyone interested would need to go an extra step. Anyway, that’s the only thing I can think of. However, if you are displaying that page in a frame, what’s the harm in having the URL in the source code? There really isn’t a good, foolproof way to prevent someone determined from finding out the location of that iframe page.

You can create a php script which uses curl to call the url through localhost, then use this script as your iframe source.

If you have an issue with relative links and sub-directories, you can put your curl script inside the sub-directory.

Find attr(‘href’) and open inside hidden iframe on the page, then, So with javascript, when a user clicks on this link, the action is to find the link’s attr href and make a code for THAT link to be inside an

Find attr(‘href’) and open inside hidden iframe on the page, then show() iframe (jQuery + PHP)

There’s no point returning a string from an event handler function, it won’t do anything.

You need to actually create the modal window. Try jQuery UI for this.

The following should provide what your looking for. However would need to consider issues such as same origin policy for the XHR ‘load’ call.

See example at: http://jsfiddle.net/qeXea/2/
Note: Due to same origin policy the iframe isn’t able to populate with the content, simply setup your own page on your website and use your own urls to view.

Facebook — Show/hide Iframe, Have tried giving your div an ? EDIT: This was already answered here. But, I didn’t realize at first sight that you’re loading

Remove or hide content inside of an iframe

This is because the content of the iframe is on a different domain to the parent page. The browser security logic stops any attempt made by the parent to modify cross-domain content.

The only workaround I can think of is to create another page on your own domain that loads the contents of api.jquery.com and then make iframe’s src point to this new page you created.

E.g. Create a page called jqueryApi.php that has the following piece of php code

And then make the iframe code to be

Источник

Оцените статью