<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flatlander</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Flatlander"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/Special:Contributions/Flatlander"/>
	<updated>2026-04-13T15:34:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Iframe&amp;diff=115057</id>
		<title>Iframe</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Iframe&amp;diff=115057"/>
		<updated>2014-09-24T20:29:00Z</updated>

		<summary type="html">&lt;p&gt;Flatlander: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IFrame (&#039;&#039;&#039;I&#039;&#039;&#039;nline &#039;&#039;&#039;F&#039;&#039;&#039;rame) is piece of HTML code that creates a frame or window within an HTML page to display content from another URL.&lt;br /&gt;
&lt;br /&gt;
In Moodle, it is a good way to display content such as:&lt;br /&gt;
*calendars from external sites such as Google calendar, Microsoft Outlook web calendars, Apple Mobileme calendars etc.&lt;br /&gt;
*web pages with current content: e.g. weather&lt;br /&gt;
*content from network locations outside the current Moodle course e.g. another Moodle course, a network file of html page&lt;br /&gt;
*content from sites which deliver content through iFrames such as Google Picasa web albums, youtube etc.&lt;br /&gt;
&lt;br /&gt;
NOTE: Screen widths are often 1200 pixels wide so an iFrame up to 1000 pixels is often fine.&lt;br /&gt;
&lt;br /&gt;
The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in the browser while the IFrame is still being loaded. The IFrame behaves much like an inline image and the user can scroll it out of view. On the other hand, the IFrame can contain its own scroll bar, independent of the surrounding page&#039;s scroll bar. &lt;br /&gt;
&lt;br /&gt;
For security reasons, moodle just does not allow you to use iframes everywhere.  In general, iframe code is not allowed in Moodle activities to which all class members can contribute, including Assignment submissions, Wiki, Forum, Database, Glossary, and Blog activities.  In these activities iframe-embedded video displays in the HTML editor, but will be stripped out when posts or submissions are saved.&lt;br /&gt;
&lt;br /&gt;
Caution: not all browsers recognize IFrame. However, Mozilla Firefox, Opera and Microsoft Internet Explorer introduced contentEditable and designMode, which enables users to edit the contents of the HTML contained in an IFrame. Popular web applications which make use of this feature including Google Docs &amp;amp; Spreadsheets (formerly Writely), JotSpot Live, and Windows Live Hotmail to name a few.&lt;br /&gt;
&lt;br /&gt;
==Code example==&lt;br /&gt;
&lt;br /&gt;
To create an iframe,&lt;br /&gt;
*edit a section header, label, web page or forum post&lt;br /&gt;
*turn on the HTML code display&lt;br /&gt;
*paste the following code somwhere&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;iframe height=&amp;quot;600&amp;quot; width=&amp;quot;900&amp;quot; src=&amp;quot;https://docs.moodle.org&amp;quot;&amp;gt; Your browser does not diplay iFrames&amp;lt;/iframe&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example creates a scrollable window 300 by 600 pixtels and opens up Adobe Reader and the file inside it. &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;iframe height=&amp;quot;300&amp;quot; width=&amp;quot;600&amp;quot; src=&amp;quot;http://demo.moodle.org/file.php/2/Media_examples /WQ3.pdf&amp;quot;&amp;gt; Alternative text for browsers that do not understand IFrames &amp;lt;/iframe&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example use==&lt;br /&gt;
Here is an example of how to insert a PDF file into an assignment using Iframe.&lt;br /&gt;
&lt;br /&gt;
#Within your course, upload the PDF into your course files area&lt;br /&gt;
#Once you&#039;ve done that click on the file and note its URL address in the browser address bar. &lt;br /&gt;
##Tip:copy the URL from the browser window, pop it into Notepad.  Or open a second browser window and find the pdf file,  copy the URL address from that window into the window you have open with the code.&lt;br /&gt;
#Create a new Assignment (Online Text)&lt;br /&gt;
#For the description, change the view to HTML view in the editor, and embed the HTML code for an iFrame that points to the PDF URL you noted in step 2.&lt;br /&gt;
#Change back to WYSIWYG mode and add your question underneath the newly displayed iframe&lt;br /&gt;
#Save, and that should now let your students view the scrollable PDF in the same window as the one they&#039;ll be entering their response into.&lt;br /&gt;
&lt;br /&gt;
This produced:&lt;br /&gt;
&lt;br /&gt;
[[Image:Iframe example.jpg|center|thumb|Iframe example showing scroll bars in a student view]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/IFrame Wikipedia on IFrame]&lt;br /&gt;
&lt;br /&gt;
[[Category:Editing text]]&lt;/div&gt;</summary>
		<author><name>Flatlander</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=IP_blocker&amp;diff=106664</id>
		<title>IP blocker</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=IP_blocker&amp;diff=106664"/>
		<updated>2013-09-18T17:16:55Z</updated>

		<summary type="html">&lt;p&gt;Flatlander: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Security}}&lt;br /&gt;
An administrator can set a list of allowed and/or blocked IP addresses in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Security &amp;gt; IP blocker&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:IPblocker.png]]&lt;br /&gt;
&lt;br /&gt;
*By default, entries in the blocked list are processed first, but checking the box &#039;&#039;Allowed list will be processed first&#039;&#039; reverses this order.&lt;br /&gt;
*Each entry in the allowed or blocked list goes on one line, with either the full IP address, partial address or range.  Blank lines or domain names written as text (like moodle.org) are ignored.&lt;br /&gt;
&lt;br /&gt;
Be aware that with any entries in the Allowed IP List, the effect is to allow ONLY those IP addresses and block all others. Exercise care with this setting, as it is possible to lock yourself out of Moodle.&lt;br /&gt;
&lt;br /&gt;
If there are entries present in the Blocked IP List, any hosts for which Moodle cannot determine the IP address will be blocked by default. For example, hosts that are behind a web proxy server which does not pass the HTTP headers containing the remote IP address information. In this case Moodle cannot determine the host&#039;s IP address with which to compare against the Blocked IP List, so the host is blocked by default. A suggested workaround may be to change the Logged IP address source (getremoteaddrconf setting within Site administration &amp;gt; Server &amp;gt; HTTP &amp;gt; Reverse Proxy) from the default to &amp;quot;REMOTE_ADDR&amp;quot; which will log the IP address of the proxy server instead of the host behind it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Blocage IP]]&lt;br /&gt;
[[de:IP-Blockierung]]&lt;/div&gt;</summary>
		<author><name>Flatlander</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=IP_blocker&amp;diff=106663</id>
		<title>IP blocker</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=IP_blocker&amp;diff=106663"/>
		<updated>2013-09-18T17:14:02Z</updated>

		<summary type="html">&lt;p&gt;Flatlander: Clarify logical operation of how IP Blocker works (my lessons learned may benefit others)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Security}}&lt;br /&gt;
An administrator can set a list of allowed and/or blocked IP addresses in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Security &amp;gt; IP blocker&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:IPblocker.png]]&lt;br /&gt;
&lt;br /&gt;
*By default, entries in the blocked list are processed first, but checking the box &#039;&#039;Allowed list will be processed first&#039;&#039; reverses this order.&lt;br /&gt;
*Each entry in the allowed or blocked list goes on one line, with either the full IP address, partial address or range.  Blank lines or domain names written as text (like moodle.org) are ignored.&lt;br /&gt;
&lt;br /&gt;
*Be aware that with any entries in the Allowed IP List, the effect is to allow ONLY those IP addresses and block all others. Exercise care with this setting, as it is possible to lock yourself out of Moodle.&lt;br /&gt;
&lt;br /&gt;
*If there are entries present in the Blocked IP List, any hosts for which Moodle cannot determine the IP address will be blocked by default. For example, hosts that are behind a web proxy server which does not pass the HTTP headers containing the remote IP address information. In this case Moodle cannot determine the host&#039;s IP address with which to compare against the Blocked IP List, so the host is blocked by default. A suggested workaround may be to change the Logged IP address source (getremoteaddrconf setting within Site administration &amp;gt; Server &amp;gt; HTTP &amp;gt; Reverse Proxy) from the default to &amp;quot;REMOTE_ADDR&amp;quot; which will log the IP address of the proxy server instead of the host behind it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Blocage IP]]&lt;br /&gt;
[[de:IP-Blockierung]]&lt;/div&gt;</summary>
		<author><name>Flatlander</name></author>
	</entry>
</feed>