Skip to content

harshraj005/SiteGuard_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Site Guard Project

Site Guard is a comprehensive security and monitoring solution designed to safeguard web applications from vulnerabilities, unauthorized access, and malicious traffic. It acts as a protective layer, ensuring your digital assets remain secure and performant.


📖 Table of Contents


✨ Key Features

  • 🛡️ Threat Detection: Automated scanning for common vulnerabilities like SQL injection and XSS.
  • 🚦 Traffic Control: Integrated rate-limiting and IP filtering to prevent DDoS attacks.
  • 🔍 File Integrity Monitoring: Real-time tracking of file system changes to detect unauthorized modifications.
  • 📊 Security Dashboard: A clean UI to visualize logs, blocked requests, and system health.
  • 🔔 Instant Notifications: Webhook support for Slack, Discord, or Email alerts.

🏗 Architecture

Site Guard is built with a modular architecture to ensure low latency and high scalability:

  • Core Engine: Written in [Your Language, e.g., Node.js/Python/Go].
  • Data Store: Utilizes [e.g., Redis/PostgreSQL] for rapid session tracking.
  • Middleware: Plugs directly into your existing server setup with minimal overhead.

🚀 Getting Started

Prerequisites

  • [e.g., Node.js v18+] or [e.g., Python 3.10+]
  • [e.g., Docker] (Optional but recommended)

Installation

  1. Clone the repository
git clone https://github.com/[your-username]/site-guard-project.git
cd site-guard-project
  1. Install Dependencies
# If using NPM
npm install
# If using Python
pip install -r requirements.txt
  1. Environment Setup Copy the example environment file and fill in your details:
cp .env.example .env
  1. Start the Service
npm run start:dev  # or python main.py

⚙️ Configuration

Site Guard is highly customizable via the .env file or config.yaml:

Variable Description Default
PORT The port the service runs on 3000
STRICT_MODE Enable aggressive blocking false
ALERT_WEBHOOK URL for security notifications null
MAX_REQUESTS Rate limit threshold per minute 100

🛠 API Reference

Get Security Status

GET /api/v1/status

Returns the current health and active protection layers.

Block an IP

POST /api/v1/blacklist
Content-Type: application/json

{
  "ip": "192.168.1.1",
  "reason": "Malicious activity"
}

🤝 Contributing

We love contributions! To keep things organized:

  1. Fork the repository.
  2. Create a Branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages