# Deploy to Bluehost - Quick Guide
**Deployment Time:** 10-15 minutes

Copyright (c) 2025 Joshua Hendricks Cole (DBA: Corporation of Light). All Rights Reserved. PATENT PENDING.

---

## 🚀 Quick Deploy (Fastest Method)

### Step 1: Configure DNS (Do This First - Takes 15-60 min)

1. Log into Namecheap: https://namecheap.com
2. Domain List → thegavl.com → Manage → Advanced DNS
3. Add new record:
   ```
   Type: CNAME
   Host: red-team-tools
   Value: thegavl.com
   TTL: Automatic
   ```
4. Click ✅ to save
5. Wait 15-60 minutes for DNS propagation

---

### Step 2: Upload Files to Bluehost

**Option A: File Manager (Easiest - No Software Needed)**

1. Log into Bluehost: https://my.bluehost.com
2. Click **"Advanced"** → **"File Manager"**
3. Navigate to `/public_html/`
4. Click **"+ Folder"** → Name it `red-team-tools`
5. Double-click to open `red-team-tools` folder
6. Click **"Upload"** button (top toolbar)
7. Upload these files from `/Users/noone/aios/red-team-tools/web-deploy/`:
   - `index.html`
   - `register.html`
   - `login.html` (we'll create this next)
   - Any other HTML files

**Option B: FTP/SFTP (If you prefer FTP client)**

Use FileZilla or Cyberduck:
```
Host: ftp.thegavl.com
Username: (your Bluehost FTP username)
Password: (your Bluehost FTP password)
Port: 21 (FTP) or 22 (SFTP)
```

Upload to: `/public_html/red-team-tools/`

---

### Step 3: Enable SSL Certificate

1. In Bluehost cPanel, go to **"Security"** section
2. Click **"SSL/TLS Status"**
3. Find `red-team-tools.thegavl.com`
4. Click **"Run AutoSSL"**
5. Wait 5-10 minutes for certificate installation

---

### Step 4: Test Your Site

Once DNS propagates (15-60 minutes):

```
http://red-team-tools.thegavl.com
```

Should show your landing page!

Then test HTTPS:
```
https://red-team-tools.thegavl.com
```

---

## ✅ Deployment Checklist

- [ ] DNS CNAME record added in Namecheap
- [ ] Waited 15-60 minutes for DNS propagation
- [ ] Created `red-team-tools` folder in Bluehost `/public_html/`
- [ ] Uploaded `index.html`
- [ ] Uploaded `register.html`
- [ ] Uploaded Terms of Service HTML (convert from MD)
- [ ] Uploaded Acceptable Use Policy HTML (convert from MD)
- [ ] Ran AutoSSL for HTTPS certificate
- [ ] Tested HTTP access
- [ ] Tested HTTPS access
- [ ] No browser warnings

---

## 📄 Files to Upload

From `/Users/noone/aios/red-team-tools/web-deploy/`:

1. **index.html** - Landing page ✅ Created
2. **register.html** - Registration page ✅ Created
3. **login.html** - Login page (create next)
4. **terms-of-service.html** - Convert from MD
5. **acceptable-use-policy.html** - Convert from MD
6. **dashboard.html** - User dashboard (create after auth works)

---

## 🔧 After Deployment

### Configure Supabase

1. Create Supabase project at https://supabase.com
2. Get your Project URL and anon key
3. Update in `register.html` and `login.html`:
   ```javascript
   const SUPABASE_URL = 'https://YOUR-PROJECT.supabase.co';
   const SUPABASE_ANON_KEY = 'YOUR-ANON-KEY';
   ```

4. Re-upload the updated files to Bluehost

### Create Supabase Tables

Run this SQL in Supabase SQL Editor:

```sql
-- User registrations analytics (optional)
CREATE TABLE user_registrations (
  id BIGSERIAL PRIMARY KEY,
  email VARCHAR(255) NOT NULL,
  name VARCHAR(255),
  company VARCHAR(255),
  profession VARCHAR(100),
  registered_at TIMESTAMPTZ DEFAULT NOW()
);

CREATE INDEX idx_registrations_email ON user_registrations(email);
CREATE INDEX idx_registrations_date ON user_registrations(registered_at DESC);

-- Enable RLS
ALTER TABLE user_registrations ENABLE ROW LEVEL SECURITY;

CREATE POLICY "Anyone can insert registrations"
  ON user_registrations FOR INSERT
  WITH CHECK (true);
```

---

## 🎯 What You Get

Once deployed, your site will have:

✅ Professional landing page with legal disclaimers
✅ User registration system with Supabase auth
✅ Email verification built-in
✅ Terms of Service acceptance tracking
✅ SSL/HTTPS encryption
✅ 11 security tools listed
✅ Law enforcement contact info
✅ Compliance with CFAA

---

## 🚨 Before Going Public

1. **Get Legal Review** (~$500-2000, 1 week)
   - Have attorney review Terms of Service
   - Review Acceptable Use Policy
   - Get advice on liability insurance

2. **Get Insurance** (~$500-2000/year)
   - E&O (Errors & Omissions) insurance
   - Cyber liability insurance
   - Protects you if users misuse tools

3. **Test Everything**
   - Register test account
   - Verify email confirmation works
   - Test login/logout
   - Ensure SSL certificate is valid

4. **Set Up Email**
   - support@thegavl.com
   - legal@thegavl.com
   - abuse@thegavl.com
   - lawenforcement@thegavl.com

---

## 💰 Total Cost

**Using Your Existing Infrastructure:**
- Bluehost: $5-10/month (you already have this!)
- Supabase: FREE (up to 50K users)
- SSL: FREE (Let's Encrypt via Bluehost)
- Domain: $12/year (you already own thegavl.com)

**Total: ~$5-10/month** 🎉

---

## 📧 Need Help?

**Bluehost Support:**
- Phone: 1-888-401-4678
- Live Chat: Available 24/7 in cPanel
- Help: https://my.bluehost.com/hosting/help

**Namecheap Support:**
- Live Chat: https://www.namecheap.com/support/live-chat/
- Phone: 1-888-401-4678

---


Copyright (c) 2025 Joshua Hendricks Cole (DBA: Corporation of Light). All Rights Reserved. PATENT PENDING.
