Link to home
Start Free TrialLog in
Avatar of Tusas BT
Tusas BTFlag for Türkiye

asked on

joomla hide iframe src

When you view the source of a joomla page from the browser,  iframe details can be seen as below.
<iframe      id="blockrandom"
       name="iframe"
       src="http://something.com:8080/somefolder/somephp.php"
       width="100%"
       height="500"
       scrolling="auto"
       align="top"
       frameborder="0"
       class="wrapper">
</iframe>

Open in new window

I dont want the value in the src tag to be seen in this fashion. Is there a way to hide it?
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Short answer is no.  You must send the src to the client in order for the client to request it.  If the client has the info, you cannot hide it.

Of course, you could do some server-side checks to validate the request...  For example, check the referrer, session state, etc.  Keep in mind, though, that virtually any of these checks can be manipulated by the user, since they have all the information.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.