Grigory,
>
> This is why I think it is important to check the actual IP address and
> compare it with the local range of IP
> addresses or with the actual IP address of students in the class.
>
Agreed. LON-CAPA already has this functionality -- based on $ENV{'REMOTE_ADDR'}.
However, in your case it sounds as though your LON-CAPA instance sits behind a
reverse proxy. In that case you would need to extract the remote IP from
$ENV{HTTP_X_FORWARDED_FOR}, and use that in place of $ENV{'REMOTE_ADDR'} for
this type of IP checking Use of the Apache2::xForwardedFor perl module from
CPAN might provide a solution.
I will contact your system administrator to find out more about the current set
up of your LON-CAPA cluster.
In the meantime I have filed an enhancement request for this
(bugs.loncapa.org/show_bug.cgi?id=6914).
Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <[email protected]> on behalf of
SIMIN, GRIGORY <[email protected]>
Sent: Tuesday, August 20, 2019 9:26 AM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] IP address of student submission - help prevent
cheating
Stuart,
Thank you for explanation; I will work on it with our domain coordinator.
My general concern is that, today's technology has changed the way students
cheat.
The tricks they use can effectively negate the advantages of online assessment
tools, including Blackboard, LON-CAPA and other.
Due to all these tricks being widely used (according to numerous reports and
publications), I strongly believe that unless teaching community counteracts
cheating with even better technology, tools like LON-CAPA may lose the
advantage of preventing cheating.
Randomization in LON-CAPA won't help if a student emails his/her problem to a
paid online tutor and in a few minutes receives the answer with complete
solution.
I tried eliminating this option by using LON-CAPA in conjunction with lockdown
browser. This will not let them use any website except Blackboard, LON-CAPA and
other whitelisted.
With lockdown browser, they cannot use email either.
I do not allow cellphones during exams.
I also set slots with passwords, which has to be entered before students can
see the problems.
However with smart watches, students can still cheat by sending their password
to online tutor and letting this tutor complete the test for them.
This is why I think it is important to check the actual IP address and compare
it with the local range of IP addresses or with the actual IP address of
students in the class.
Thank you again,
Grigory Simin
-----Original Message-----
From: LON-CAPA-users [mailto:[email protected]] On
Behalf Of Raeburn, Stuart
Sent: Tuesday, August 20, 2019 07:55
To: Discussion list for LON-CAPA users <[email protected]>
Subject: Re: [LON-CAPA-users] IP address of student submission
GS,
>
> Any advice on using $env ?
>
The value of $ENV{'REMOTE_ADDR'} is stored in $env{'request.host'} as part of
session initialization when a user logs-in to LON-CAPA.
Within a problem script you could retrieve the value set in
$env{'request.host'} using an &EXT() call, e.g.,
$ip = &EXT('request.host');
However, $env{'request.host'} is only set at log-in time, and once a user's
browser has a LON-CAPA session cookie, the same browser could connect to the
same LON-CAPA server from a different IP address (e.g., by changing WiFi
network) and the current $ENV{'REMOTE_ADDR'} would differ from
$env{'request.host'}.
Because of that, $ENV{'REMOTE_ADDR'} is used internally by LON-CAPA instead of
$env{'request.host'} whenever IP checking is needed, as is the case where
access to resources is being restricted by IP address, e.g., the acc parameter
(Client IP/Name Access Control) is set, or slots (with IP restrictions) are in
use.
A modification is needed to /home/httpd/lib/perl/Apache/lonnet.pm to allow the
value of $ENV{'REMOTE_ADDR'} to be retrieved via an &EXT(() call in a loncapa
perl script block.
See the changes shown in:
mail.lon-capa.org/pipermail/lon-capa-cvs/Week-of-Mon-20190819/028747.html
which support retrieval of the value with a call to: &EXT('client.remote_addr')
in a script block.
Policies on privacy may apply at an institution regarding access to a user's IP
address, e.g., for compliance with GDPR. In the future, an option will be
added to the LON-CAPA domain configuration, such that a user's preferences can
include either an opt-in or an opt-out for storage of the user's IP address.
>
> $timestamp=time();
>
Notes:
1. The approved method to access the current UNIX time from a script block is
to call:
&EXT('system.time')
2 .If a LON-CAPA instance has been set up to use a reverse proxy, then
$ENV{'REMOTE_ADDR'} will record the IP address of the reverse proxy, instead of
the remote IP address of the client. In such cases $ENV{HTTP_X_FORWARDED_FOR}
may include the original client IP address.
The value of the X-Forwarded-For request header is a comma separated string of
IP addresses:
<client>, <proxy1>, <proxy2>
where <client> is the remote IP address, and <proxy1> (and optionally <proxy2>)
are IP address(es) of intermediate prox(ies). In order for the value of
<client>to be reliable, <proxy1> (and optionally <proxy2>) must be IP addresses
of trusted proxy server(s). Institutional policies on privacy may apply to use
of information from $ENV{HTTP_X_FORWARDED_FOR}.
Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <[email protected]> on behalf of
SIMIN, GRIGORY <[email protected]>
Sent: Monday, August 19, 2019 6:08 PM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] IP address of student submission
Stuart,
Any advice on using $env ?
I tried including it in my script as follows
$timestamp=time();
$Time=localtime();
$IP=$ENV{'REMOTE_ADDR'};
However it did not work.
Timestamp and local time are displayed correctly $IP was not assigned any value.
Thanks,
GS
-----Original Message-----
From: LON-CAPA-users [mailto:[email protected]] On
Behalf Of Raeburn, Stuart
Sent: Monday, August 19, 2019 17:49
To: Discussion list for LON-CAPA users <[email protected]>
Subject: Re: [LON-CAPA-users] IP address of student submission
GS,
Currently the IP address shown in LON-CAPA in grade details is the stored IP
address of the remote client from which the submission was made. The IP
address recorded in the submission transaction for each student is the value
of: $ENV{'REMOTE_ADDR'}. Note: a situation where that IP address will be a
LON-CAPA server's own IP address is when you are viewing grade details for
transactions resulting from bubblesheet grading (of a printed exam), by a
Course Coordinator.
The IP address might also be different from a student's actual IP address if
students at your institution use an institutional VPN, or a proxy for web
access to your LON-CAPA instance.
Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <[email protected]> on behalf of
SIMIN, GRIGORY <[email protected]>
Sent: Monday, August 19, 2019 5:13 PM
To: Discussion list for LON-CAPA users
Subject: [LON-CAPA-users] IP address of student submission
All,
Is there a way to check the IP address of a machine that student submitted the
answer from?
In the grade details I can see the host name and the IP address, which is not
the user IP address but the IP address of the LON-CAPA server.
Being able to track the student IP address would be very helpful to prevent
cheating. Some students these days simply allow paid "ghosts" to login and
solve the problems for them.
Thank you all,
GS
_______________________________________________
LON-CAPA-users mailing list
[email protected]
https://protect2.fireeye.com/url?k=ed0c554f-b19e1f7a-ed0c1b8e-0cc47ad9bff8-3601ea00e5bab510&q=1&u=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__protect2.fireeye.com_url-3Fk-3D40c30202-2D1c513955-2D40c34cc3-2Dac1f6b0e67e4-2De219c5328f1cc789-26q-3D1-26u-3Dhttps-253A-252F-252Furldefense.proofpoint.com-252Fv2-252Furl-253Fu-253Dhttp-2D3A-5F-5Fmail.lon-2D2Dcapa.org-5Fmailman-5Flistinfo-5Flon-2D2Dcapa-2D2Dusers-2526d-253DDwICAg-2526c-253DnE-5F-5FW8dFE-2DshTxStwXtp0A-2526r-253DVsGo3jOm8tGLd6f-2DKlhT-2Dg-2526m-253DVJwZXH9WVorK7sD-2DyOjgs2GjMUO8PDKpjiIBxDWm4ik-2526s-253DjVp7Wx-2DhMDUq0A5zopNnKHLKN3Cd1f-2D7znIbW-2DZrocM-2526e-253D%26d%3DDwICAg%26c%3DnE__W8dFE-shTxStwXtp0A%26r%3DVsGo3jOm8tGLd6f-KlhT-g%26m%3DD-GiYyrbDvL7kTIdfyVgJAQDOGqIwGo2P9OnQX4nK50%26s%3DQzCPK_685F2S8bix0Swe6QWoNW5j7Po690X4jzO6YOY%26e%3D
_______________________________________________
LON-CAPA-users mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__protect2.fireeye.com_url-3Fk-3Dfd94e1ea-2Da106abdf-2Dfd94af2b-2D0cc47ad9bff8-2D67321e4c4be7247c-26q-3D1-26u-3Dhttps-253A-252F-252Furldefense.proofpoint.com-252Fv2-252Furl-253Fu-253Dhttps-2D3A-5F-5Fprotect2.fireeye.com-5Furl-2D3Fk-2D3Ddcc76de5-2D2D805556b2-2D2Ddcc72324-2D2Dac1f6b0e67e4-2D2D2958c9bd566926a9-2D26q-2D3D1-2D26u-2D3Dhttp-2D253A-2D252F-2D252Fmail.lon-2D2Dcapa.org-2D252Fmailman-2D252Flistinfo-2D252Flon-2D2Dcapa-2D2Dusers-2526d-253DDwICAg-2526c-253DnE-5F-5FW8dFE-2DshTxStwXtp0A-2526r-253DVsGo3jOm8tGLd6f-2DKlhT-2Dg-2526m-253DD-2DGiYyrbDvL7kTIdfyVgJAQDOGqIwGo2P9OnQX4nK50-2526s-253DThx7FHijIrTdko-2DW272JHcwTfen-2Dls1Ov4cAH8gCMns-2526e-253D&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=VsGo3jOm8tGLd6f-KlhT-g&m=LEBTnu7MIHlxcMyZ97u1KrJvZJ1vv2jrfWRQVIo11Tw&s=IA-33D_WgcTiUAa6AGU3dYx6bIE76h_fxy5yZiIjcrQ&e=
_______________________________________________
LON-CAPA-users mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__protect2.fireeye.com_url-3Fk-3D4593080a-2D1901423f-2D459346cb-2D0cc47ad9bff8-2D75625d2c5998aa40-26q-3D1-26u-3Dhttps-253A-252F-252Furldefense.proofpoint.com-252Fv2-252Furl-253Fu-253Dhttp-2D3A-5F-5Fmail.lon-2D2Dcapa.org-5Fmailman-5Flistinfo-5Flon-2D2Dcapa-2D2Dusers-2526d-253DDwICAg-2526c-253DnE-5F-5FW8dFE-2DshTxStwXtp0A-2526r-253DVsGo3jOm8tGLd6f-2DKlhT-2Dg-2526m-253DD-2DGiYyrbDvL7kTIdfyVgJAQDOGqIwGo2P9OnQX4nK50-2526s-253DQOlWViQk7gzec3IYd2AbkycvO3i3-5Ffwsq3B6d4Z-2DjBo-2526e-253D&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=VsGo3jOm8tGLd6f-KlhT-g&m=LEBTnu7MIHlxcMyZ97u1KrJvZJ1vv2jrfWRQVIo11Tw&s=2L_CFTWptHmMDrUulQDY2Vrv52rtU3DRWB-3Oje33G4&e=
_______________________________________________
LON-CAPA-users mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__protect2.fireeye.com_url-3Fk-3Db2eb7456-2Dee793e63-2Db2eb3a97-2D0cc47ad9bff8-2D4153611faf6636c2-26q-3D1-26u-3Dhttp-253A-252F-252Fmail.lon-2Dcapa.org-252Fmailman-252Flistinfo-252Flon-2Dcapa-2Dusers&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=VsGo3jOm8tGLd6f-KlhT-g&m=LEBTnu7MIHlxcMyZ97u1KrJvZJ1vv2jrfWRQVIo11Tw&s=GYqM26C3JkxiyBqq8-jhsgdHzooRRVcX6d2V6Mp92K8&e=
_______________________________________________
LON-CAPA-users mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_mailman_listinfo_lon-2Dcapa-2Dusers&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=VsGo3jOm8tGLd6f-KlhT-g&m=LEBTnu7MIHlxcMyZ97u1KrJvZJ1vv2jrfWRQVIo11Tw&s=_xNNwCoHzNhjm_AcBvkqoGCMwOWEaD6DAL3dcCRVQCE&e=
_______________________________________________
LON-CAPA-users mailing list
[email protected]
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users