> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillfactory.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Anti-Sharing Protection

> Security system that protects access integrity with session and device control

## Anti-sharing system

The platform monitors access to ensure each account is used by only one person. The system combines concurrent session control, device limits, and per-lesson view counting.

## Session control

### Configured limits

| Resource                   | Limit           |
| -------------------------- | --------------- |
| Concurrent sessions        | 3 per user      |
| Registered devices         | 5 per user      |
| Session validity           | 7 days          |
| Heartbeat (activity check) | Every 5 minutes |

### How it works

When you log in to the platform:

<Steps>
  <Step title="Session created">
    The system registers a new session with your device, browser, and IP address.
  </Step>

  <Step title="Activity monitored">
    Every 5 minutes, the system verifies that you are still active (heartbeat).
  </Step>

  <Step title="Session expires">
    Sessions inactive for more than 7 days are automatically terminated.
  </Step>
</Steps>

### Device identification

The system uniquely identifies each device using:

* **User Agent** - Browser and version
* **Platform** - Operating system (Windows, macOS, Linux, Android, iOS)
* **Screen resolution** - Display dimensions
* **Language** - Browser configuration
* **Time zone** - Device timezone

The device name is automatically generated in the format "Chrome on macOS", "Safari on iOS", etc.

## What happens when limits are exceeded

### Session limit

If you try to access the platform with more than 3 concurrent sessions:

1. A message informs you that the limit has been reached
2. You can see the list of active sessions
3. You need to terminate an existing session to continue

### Device limit

If you try to access from more than 5 different devices:

1. Access is blocked on the new device
2. A message asks you to remove an old device
3. Go to the device manager to free up space

## Managing sessions and devices

You can manage your sessions and devices at any time:

<Steps>
  <Step title="Go to your profile">
    Click your avatar → Profile → Devices
  </Step>

  <Step title="View active sessions">
    Lists all devices with an active session, including name, IP, and last activity.
  </Step>

  <Step title="Terminate sessions">
    Click "Terminate" next to a session to disconnect it remotely.
  </Step>

  <Step title="Remove devices">
    Remove devices you no longer use to free up space.
  </Step>
</Steps>

## Per-lesson view limits

In addition to session control, the platform allows configuring a maximum number of views per lesson.

### How it works

* Each lesson can have a maximum number of views (`max_views`)
* Each access to the lesson increments the counter
* When the limit is reached, the student sees a screen informing them that the limit has been reached
* The instructor or administrator can grant extra views

### Exempt lesson types

| Lesson type             | View limit                      |
| ----------------------- | ------------------------------- |
| Video (recorded lesson) | Subject to the configured limit |
| Exam/Quiz               | Always unlimited                |
| Live class              | Always unlimited                |

### Extra views

If you have reached the limit for a lesson, contact the instructor or administrator. They can grant additional views directly from the admin panel.

<Note>
  Extra views are cumulative. If a lesson's limit is 5 and you receive 3 extra, you can watch up to 8 times total.
</Note>

## Who is exempt

Instructors and administrators are not subject to view limits. The system automatically checks the user's role before applying any restriction.

## For administrators

### Active sessions panel

The administrator can monitor all active sessions on the platform:

* **Session list** - View all connected users
* **Details** - Device, IP, last activity
* **Count per user** - How many active sessions each user has

### View limit configuration

For each lesson, the administrator can:

<Steps>
  <Step title="Access the lesson">
    Admin → Courses → Lesson → View limits
  </Step>

  <Step title="Configure the limit">
    Set the maximum number of views or leave it unlimited.
  </Step>

  <Step title="Monitor usage">
    View statistics: total views, unique viewers, average per user.
  </Step>

  <Step title="Grant extras">
    If needed, grant extra views to specific students.
  </Step>
</Steps>

### Available statistics

The limits panel displays:

* **Total views** - Sum of all views for the lesson
* **Unique viewers** - How many distinct students watched
* **Average per user** - Total views divided by viewers
* **Users with extras** - How many received additional views

## Best practices

<Tabs>
  <Tab title="For students">
    **Allowed:**

    * Use on your home computer and phone
    * Switch between devices (respecting the 5-device limit)
    * Access from different locations

    **Not allowed:**

    * Share login credentials with others
    * Use account-sharing services
    * Sell or lend access
  </Tab>

  <Tab title="For administrators">
    **Recommendations:**

    * Set view limits only for premium content
    * Monitor sessions periodically
    * Grant extras when the student has a legitimate reason
    * Use unlimited views for introductory or free lessons
  </Tab>
</Tabs>

<Warning>
  Account sharing is a violation of the terms of use and may result in loss of access.
</Warning>

## Common issues

<AccordionGroup>
  <Accordion icon="wifi" title="I was blocked when switching networks">
    The system may register a new session when you change networks. If you reached the limit, terminate old sessions in your profile.
  </Accordion>

  <Accordion icon="mobile" title="I switched phones and cannot log in">
    The old device may still be registered. Access from another device and remove the old one from the device list.
  </Accordion>

  <Accordion icon="circle-xmark" title="View limit reached">
    Contact the instructor or administrator. They can grant extra views directly from the panel.
  </Accordion>

  <Accordion icon="rotate" title="Old sessions do not terminate">
    Inactive sessions automatically expire after 7 days. If you need to free up sooner, use "Terminate all other sessions" in your profile.
  </Accordion>
</AccordionGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Video streaming" icon="circle-play" href="/en/features/video-streaming">
    Learn how the video system works
  </Card>

  <Card title="Student profile" icon="user" href="/en/students/profile">
    Manage your sessions and devices
  </Card>
</CardGroup>
