<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/umiacs/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maxyu</id>
	<title>UMIACS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/umiacs/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maxyu"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php/Special:Contributions/Maxyu"/>
	<updated>2026-04-16T19:10:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=WebSpace&amp;diff=7429</id>
		<title>WebSpace</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=WebSpace&amp;diff=7429"/>
		<updated>2017-06-26T18:48:07Z</updated>

		<summary type="html">&lt;p&gt;Maxyu: /* Restricting Content based on IP address */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;UMIACS provides web space hosting for research/lab pages and user pages.&lt;br /&gt;
&lt;br /&gt;
==Main Website and Lab Pages==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.umiacs.umd.edu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Users can access the main website and lab sites for editing in two ways:&lt;br /&gt;
* From &amp;lt;b&amp;gt;Unix&amp;lt;/b&amp;gt; as /fs/www - and can be remotely accessed by [[SFTP]] to a supported Unix host (eg. [[OpenLAB]])&lt;br /&gt;
* From &amp;lt;b&amp;gt;Windows&amp;lt;/b&amp;gt; as \\umiacs-webftp.umiacs.umd.edu\www-umiacs - and remotely accessed by the same file share over the [[VPN]]&lt;br /&gt;
&lt;br /&gt;
Faculty members and authorized users can modify their own public profiles on the main UMIACS homepage. For instructions, see [[ContentManagement]].&lt;br /&gt;
&lt;br /&gt;
==Personal Web Space==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.umiacs.umd.edu/~username&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Users can access their website for editing two ways:&lt;br /&gt;
&lt;br /&gt;
* From &amp;lt;b&amp;gt;Unix&amp;lt;/b&amp;gt; as /fs/www-users/username - and can be remotely accessed via [[SFTP]] to a supported UNIX host (eg. [[OpenLAB]])&lt;br /&gt;
* From &amp;lt;b&amp;gt;Windows&amp;lt;/b&amp;gt; as \\umiacs-webftp.umiacs.umd.edu\www-users\username - and remotely accessed by the same file share over the [[VPN]]&lt;br /&gt;
&lt;br /&gt;
In general, large datasets related to a Labs research should go into the specific lab&#039;s web tree, not the individual users.  Remember that users&#039; webpage is not permanently maintained once the user leaves UMIACS.&lt;br /&gt;
&lt;br /&gt;
==Adding A Password Protected Folder To Your Web Space==&lt;br /&gt;
&lt;br /&gt;
1) Create the directory you want to password protect or &amp;lt;tt&amp;gt;cd&amp;lt;/tt&amp;gt; into the directory you want to password protect&lt;br /&gt;
&lt;br /&gt;
2) Create a file called &#039;&#039;.htaccess&#039;&#039; (&amp;lt;tt&amp;gt; vi .htaccess&amp;lt;/tt&amp;gt;) in the directory you wish to password protect.&lt;br /&gt;
&lt;br /&gt;
3) In the file you just created type the following lines &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile &amp;quot;/your/directory/here/&amp;quot;.htpasswd&lt;br /&gt;
AuthName &amp;quot;Secure Document&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
require user username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if you were going to protect the &amp;lt;tt&amp;gt;/fs/www-users/username/private&amp;lt;/tt&amp;gt; directory and you want the required name to be  &amp;lt;tt&amp;gt;class239&amp;lt;/tt&amp;gt;, then your file would look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile /fs/www-users/username/private/.htpasswd&lt;br /&gt;
AuthName &amp;quot;Secure Document&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
require user class239&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4) Create a file called &#039;&#039;.htpasswd&#039;&#039; in the same directory as &#039;&#039;.htaccess&#039;&#039;. You create this file by typing in &amp;lt;tt&amp;gt;htpasswd -c .htpasswd &#039;&#039;username&#039;&#039;&amp;lt;/tt&amp;gt; in the directory area to be protected.&lt;br /&gt;
&lt;br /&gt;
In the example above, the username is &amp;lt;tt&amp;gt;class239&amp;lt;/tt&amp;gt; so you would type &amp;lt;tt&amp;gt;htpasswd -c .htpasswd class239&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted to enter the password you want. The &#039;&#039;.htpasswd&#039;&#039; file will be created in the current directory and will contain an encrypted version of the password.&lt;br /&gt;
&lt;br /&gt;
To later change the username, edit the &#039;&#039;.htaccess&#039;&#039; file and change the username. If you want to later change the password, just retype the above line in step 4 and enter the new password at the prompt.&lt;br /&gt;
&lt;br /&gt;
==Restricting Content based on IP address==&lt;br /&gt;
It is possible to have pages on your webspace only accessible to clients connecting from certain IP addresses. In order to accomplish this, cd in to the directory you wish to restrict, and edit your &#039;&#039;.htaccess&#039;&#039; or &#039;&#039;httpd.conf&#039;&#039; file. The example below shows how to make content only viewable to clients connecting from the UMD wifi in Apache 2.2.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; &lt;br /&gt;
white-space: -moz-pre-wrap; &lt;br /&gt;
white-space: -pre-wrap; &lt;br /&gt;
white-space: -o-pre-wrap; &lt;br /&gt;
word-wrap: break-word;&amp;quot;&amp;gt;SetEnvIF X-Forwarded-For &amp;quot;^128\.8\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^129\.2\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^192\.168\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^206\.196\.(?:1[6-9][0-9]|2[0-5][0-9])\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^10\.\d+\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
Order Deny,Allow&lt;br /&gt;
Deny from all&lt;br /&gt;
Allow from env=UMD_NETWORK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The SetEnvIF directive will modify one&#039;s environment if the specified attribute matches the provided regular expression. In this example, IP addresses that are forwarded from an IP within UMD&#039;s IP space are tagged with UMD_NETWORK. Then, all traffic to the example directory is blocked unless it has the UMD_NETWORK tag. See the following pages for a more in depth explanation of the commands used.&lt;br /&gt;
&lt;br /&gt;
[https://httpd.apache.org/docs/2.2/howto/htaccess.html .htaccess], [https://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif SetEnvIf], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order Order], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny Deny], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow Allow]&lt;/div&gt;</summary>
		<author><name>Maxyu</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=WebSpace&amp;diff=7428</id>
		<title>WebSpace</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=WebSpace&amp;diff=7428"/>
		<updated>2017-06-26T18:47:43Z</updated>

		<summary type="html">&lt;p&gt;Maxyu: /* Restricting Content based on IP address */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;UMIACS provides web space hosting for research/lab pages and user pages.&lt;br /&gt;
&lt;br /&gt;
==Main Website and Lab Pages==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.umiacs.umd.edu&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Users can access the main website and lab sites for editing in two ways:&lt;br /&gt;
* From &amp;lt;b&amp;gt;Unix&amp;lt;/b&amp;gt; as /fs/www - and can be remotely accessed by [[SFTP]] to a supported Unix host (eg. [[OpenLAB]])&lt;br /&gt;
* From &amp;lt;b&amp;gt;Windows&amp;lt;/b&amp;gt; as \\umiacs-webftp.umiacs.umd.edu\www-umiacs - and remotely accessed by the same file share over the [[VPN]]&lt;br /&gt;
&lt;br /&gt;
Faculty members and authorized users can modify their own public profiles on the main UMIACS homepage. For instructions, see [[ContentManagement]].&lt;br /&gt;
&lt;br /&gt;
==Personal Web Space==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.umiacs.umd.edu/~username&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Users can access their website for editing two ways:&lt;br /&gt;
&lt;br /&gt;
* From &amp;lt;b&amp;gt;Unix&amp;lt;/b&amp;gt; as /fs/www-users/username - and can be remotely accessed via [[SFTP]] to a supported UNIX host (eg. [[OpenLAB]])&lt;br /&gt;
* From &amp;lt;b&amp;gt;Windows&amp;lt;/b&amp;gt; as \\umiacs-webftp.umiacs.umd.edu\www-users\username - and remotely accessed by the same file share over the [[VPN]]&lt;br /&gt;
&lt;br /&gt;
In general, large datasets related to a Labs research should go into the specific lab&#039;s web tree, not the individual users.  Remember that users&#039; webpage is not permanently maintained once the user leaves UMIACS.&lt;br /&gt;
&lt;br /&gt;
==Adding A Password Protected Folder To Your Web Space==&lt;br /&gt;
&lt;br /&gt;
1) Create the directory you want to password protect or &amp;lt;tt&amp;gt;cd&amp;lt;/tt&amp;gt; into the directory you want to password protect&lt;br /&gt;
&lt;br /&gt;
2) Create a file called &#039;&#039;.htaccess&#039;&#039; (&amp;lt;tt&amp;gt; vi .htaccess&amp;lt;/tt&amp;gt;) in the directory you wish to password protect.&lt;br /&gt;
&lt;br /&gt;
3) In the file you just created type the following lines &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile &amp;quot;/your/directory/here/&amp;quot;.htpasswd&lt;br /&gt;
AuthName &amp;quot;Secure Document&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
require user username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if you were going to protect the &amp;lt;tt&amp;gt;/fs/www-users/username/private&amp;lt;/tt&amp;gt; directory and you want the required name to be  &amp;lt;tt&amp;gt;class239&amp;lt;/tt&amp;gt;, then your file would look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile /fs/www-users/username/private/.htpasswd&lt;br /&gt;
AuthName &amp;quot;Secure Document&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
require user class239&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4) Create a file called &#039;&#039;.htpasswd&#039;&#039; in the same directory as &#039;&#039;.htaccess&#039;&#039;. You create this file by typing in &amp;lt;tt&amp;gt;htpasswd -c .htpasswd &#039;&#039;username&#039;&#039;&amp;lt;/tt&amp;gt; in the directory area to be protected.&lt;br /&gt;
&lt;br /&gt;
In the example above, the username is &amp;lt;tt&amp;gt;class239&amp;lt;/tt&amp;gt; so you would type &amp;lt;tt&amp;gt;htpasswd -c .htpasswd class239&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted to enter the password you want. The &#039;&#039;.htpasswd&#039;&#039; file will be created in the current directory and will contain an encrypted version of the password.&lt;br /&gt;
&lt;br /&gt;
To later change the username, edit the &#039;&#039;.htaccess&#039;&#039; file and change the username. If you want to later change the password, just retype the above line in step 4 and enter the new password at the prompt.&lt;br /&gt;
&lt;br /&gt;
==Restricting Content based on IP address==&lt;br /&gt;
It is possible to have pages on your webspace only accessible to clients connecting from certain IP addresses. In order to accomplish this, cd in to the directory you wish to restrict, and edit your &#039;&#039;.htaccess&#039;&#039; or &amp;quot;httpd.conf&amp;quot; file. The example below shows how to make content only viewable to clients connecting from the UMD wifi in Apache 2.2.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; &lt;br /&gt;
white-space: -moz-pre-wrap; &lt;br /&gt;
white-space: -pre-wrap; &lt;br /&gt;
white-space: -o-pre-wrap; &lt;br /&gt;
word-wrap: break-word;&amp;quot;&amp;gt;SetEnvIF X-Forwarded-For &amp;quot;^128\.8\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^129\.2\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^192\.168\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^206\.196\.(?:1[6-9][0-9]|2[0-5][0-9])\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
SetEnvIF X-Forwarded-For &amp;quot;^10\.\d+\.\d+\.\d+$&amp;quot; UMD_NETWORK&lt;br /&gt;
Order Deny,Allow&lt;br /&gt;
Deny from all&lt;br /&gt;
Allow from env=UMD_NETWORK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The SetEnvIF directive will modify one&#039;s environment if the specified attribute matches the provided regular expression. In this example, IP addresses that are forwarded from an IP within UMD&#039;s IP space are tagged with UMD_NETWORK. Then, all traffic to the example directory is blocked unless it has the UMD_NETWORK tag. See the following pages for a more in depth explanation of the commands used.&lt;br /&gt;
&lt;br /&gt;
[https://httpd.apache.org/docs/2.2/howto/htaccess.html .htaccess], [https://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif SetEnvIf], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order Order], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny Deny], [https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow Allow]&lt;/div&gt;</summary>
		<author><name>Maxyu</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=Windows&amp;diff=7424</id>
		<title>Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=Windows&amp;diff=7424"/>
		<updated>2017-06-09T14:07:03Z</updated>

		<summary type="html">&lt;p&gt;Maxyu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See [[Windows Activation]] if you need to get Windows to activate on a UMIACS supported desktop or laptop.&lt;br /&gt;
&lt;br /&gt;
==Programming Environments==&lt;br /&gt;
*[[WindowsPython | Python]]&lt;br /&gt;
*[[R]]&lt;br /&gt;
*[[RStudio]]&lt;br /&gt;
*[[Visual Studio]]&lt;br /&gt;
&lt;br /&gt;
==Other Resources==&lt;br /&gt;
*[[InputMethodEditors | Input Method Editors]]&lt;br /&gt;
*[[Remote Desktop]]&lt;br /&gt;
*[[Setting File Permissions in Windows]]&lt;br /&gt;
*[[ActiveDirectory | Windows Accounts]]&lt;/div&gt;</summary>
		<author><name>Maxyu</name></author>
	</entry>
</feed>