Cookie Management
GatherHub can use browser cookies to access authenticated content, particularly from YouTube.
This enables the download of age-restricted videos, private videos you have access to, or other content
that requires authentication.
Note: Cookie management is primarily used for YouTube downloads,
but may help with other sites that require authentication.
Cookie Setup
To set up cookies for authenticated downloads:
- Go to Cookie Settings in the web interface
- Click "Upload Cookies" to upload a cookies.txt file
- Your cookies will be stored securely and used for downloads
Cookie Security
Security Note: Cookies contain authentication information.
GatherHub stores them locally with restricted permissions for security.
Important security considerations:
- Cookies are stored only on your local system
- They are not transmitted to any third parties
- You can delete them at any time from the Cookie Settings page
- Cookies expire naturally after approximately 2 weeks
- Secure permissions are applied to the cookie file
Obtaining YouTube Cookies
Using a Browser Extension (Recommended)
- Install the "Get cookies.txt" extension:
- Log in to YouTube in your browser
- Navigate to youtube.com
- Click the extension icon while on youtube.com
- Click "Export" to download your cookies.txt file
- Upload the cookies.txt file using the upload button in Cookie Settings
Manual Cookie Export
For advanced users who prefer manual cookie export:
- Log in to YouTube in your browser
- Open Developer Tools (F12 or Ctrl+Shift+I)
- Go to the Application tab
- Under Storage, select Cookies > youtube.com
- Export these cookies in Netscape format
- Save as cookies.txt and upload
Cookie Validation
GatherHub performs several validation checks on uploaded cookies:
- Format validation to ensure they are proper Netscape-format cookies
- Presence of YouTube domain cookies
- Freshness check (cookies older than 14 days may be expired)
- Size check (must be under 5MB)
You can test your cookies in the Cookie Settings page to verify they work correctly.
Cookie Management API
GatherHub provides API endpoints for cookie management:
Endpoint |
Method |
Description |
/api/cookies/status |
GET |
Get current cookie status |
/api/cookies/upload |
POST |
Upload a cookies.txt file |
/api/cookies/delete |
DELETE |
Delete stored cookies |
/api/cookies/validate |
GET |
Validate stored cookies |
/api/cookies/guide |
GET |
Get cookie setup guide content |
Troubleshooting
If you're having issues with cookie-based downloads:
- Make sure you're logged in to YouTube when exporting cookies
- Try clearing your browser cache and re-exporting cookies
- Some videos may have additional restrictions that prevent downloading
- Your cookies expire after about 2 weeks, so you may need to update them
- Check the Cookie Settings page to verify your cookies are valid
Related Documentation