GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - tung-programming/BlockquestWeek1

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
contracts
contracts
 
 
frontend
frontend
 
 
functions
functions
 
 
public
public
 
 
y
y
 
 
.firebaserc
.firebaserc
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
cors.json
cors.json
 
 
database.rules.json
database.rules.json
 
 
firebase.json
firebase.json
 
 
firestore.indexes.json
firestore.indexes.json
 
 
firestore.rules
firestore.rules
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
storage.rules
storage.rules
 
 

Repository files navigation

๐Ÿ›ก๏ธ PhishBlock โ€” Smart Phishing Intelligence & Archival System

PhishBlock is a full-stack phishing detection and intelligence dashboard built with
Firebase (Functions + Hosting + Firestore) and React + Vite on the frontend.

It allows users to:

  • ๐Ÿง  Report suspicious URLs
  • โš™๏ธ Verify domains in real-time using Google Safe Browsing API v4 + WHOIS API Ninjas
  • ๐Ÿ”— Anchor verified posts on-chain (Polygon Amoy Testnet)
  • ๐Ÿงพ Archive evidence to IPFS via Web3.Storage / Pinata

๐Ÿš€ Features

  • ๐Ÿ” SafeTools โ€“ Real-time phishing intelligence backend (Google Safe Browsing + WHOIS)
  • ๐Ÿงฉ Anchors โ€“ On-chain verified phishing reports with IPFS backups
  • ๐ŸŒ Domains โ€“ Instant domain verification UI
  • ๐Ÿงฑ Firebase Functions v2 โ€“ Node 22 runtime (Cloud Run 2nd Gen)
  • ๐ŸŽจ Frontend โ€“ Vite + React + TailwindCSS + Framer Motion
  • ๐Ÿ” Secure Config โ€“ API keys stored via firebase functions:config:set
  • โšก CORS-Safe backend for localhost + web.app origins
  • ๐Ÿ’พ Firestore Integration for live feeds
  • ๐Ÿ“ก Responsive UI โ€“ fully mobile ready

๐Ÿงฉ Tech Stack

Layer Tech
Frontend React (Vite), TailwindCSS, Framer Motion
Backend Firebase Functions (Node 22, Cloud Run 2nd Gen)
Database Firestore
Blockchain Polygon Amoy Testnet (ethers.js)
Storage IPFS via Web3.Storage + Pinata
APIs Google Safe Browsing v4, API Ninjas WHOIS

โš™๏ธ Installation

git clone https://github.com/tung-programming/BlockquestWeek1
cd PhishBlock

๐Ÿ”ง Frontend Setup

cd frontend
npm install
npm run dev

Runs locally on http://localhost:5173

๐Ÿง  Firebase Functions Setup

cd ../functions
npm install

Add environment keys

firebase functions:config:set \
  safebrowsing.key="YOUR_GOOGLE_SAFE_BROWSING_KEY" \
  whois.apininjas="YOUR_API_NINJAS_KEY" \
  virustotal.key="(future)" \
  urlscan.key="(future)"

Deploy backend

firebase deploy --only functions:safeTools

๐Ÿ— Build & Deploy Frontend

cd frontend
npm run build
cd ..
firebase deploy --only hosting

Live site โ†’ https://phishblock-demo.web.app

Functions API โ†’ https://safetools-qtxnl6sgzq-el.a.run.app

Folder Structure

TUSHAR-BLOCKQUEST/
โ”œโ”€โ”€ .firebase/
โ”œโ”€โ”€ contracts/
โ”‚   โ””โ”€โ”€ Anchor.sol
|---frontend
|    โ”œโ”€ .env.local
|    โ”œโ”€ index.html
|    โ”œโ”€ package.json
|    โ”œโ”€ postcss.config.cjs
|    โ”œโ”€ tailwind.config.cjs
|    โ”œโ”€ vite.config.js
|    โ”œโ”€ public
|    โ”‚  โ””โ”€ favicon.ico
|    โ””โ”€ src
|       โ”œโ”€ main.jsx
|       โ”œโ”€ App.jsx
|       โ”œโ”€ index.css
|       โ”œโ”€ assets
|       โ”‚  โ””โ”€ (images, icons...)
|       โ”œโ”€ firebase
|       โ”‚  โ””โ”€ firebase.js
|       โ”œโ”€ hooks
|       โ”‚  โ”œโ”€ useAuth.jsx
|       โ”‚  โ””โ”€ useBlockchainTx.js
|       โ”œโ”€ components
|       โ”‚  โ”œโ”€ BackButton.jsx
|       โ”‚  โ”œโ”€ SearchDropdown.jsx
|       โ”‚  โ””โ”€ Feed
|       โ”‚     โ”œโ”€ PostCard.jsx
|       โ”‚     โ”œโ”€ Navbar.jsx
|       โ”‚     โ”œโ”€ PostForm.jsx
|       โ”‚     โ”œโ”€ RightPanel.jsx
|       โ”‚     โ”œโ”€ Sidebar.jsx
|       โ”‚     โ””โ”€ ImageModal.jsx
|       โ””โ”€ pages
|           โ”œโ”€ Landing.jsx
|           โ”œโ”€ FeedPage.jsx
|           โ”œโ”€ PostDetail.jsx
|           โ”œโ”€ ProfilePage.jsx
|           โ”œโ”€ UserProfile.jsx
|           โ”œโ”€ Login.jsx
|           โ”œโ”€ Signup.jsx
|           โ”œโ”€ Domains.jsx
|           โ”œโ”€ Tools.jsx
|           โ””โ”€ Anchors.jsx
โ”‚
โ”œโ”€โ”€ functions/
โ”‚   โ”œโ”€โ”€ node_modules/
โ”‚   โ”œโ”€โ”€ Screenshots/
โ”‚   โ”œโ”€โ”€ anchor.js
โ”‚   โ”œโ”€โ”€ checkTx.js
โ”‚   โ”œโ”€โ”€ firestore-debug.log
โ”‚   โ”œโ”€โ”€ index.js
โ”‚   โ”œโ”€โ”€ manualArchive.js
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ package-lock.json
โ”‚   โ”œโ”€โ”€ safeBrowsingCheck.js
โ”‚   โ”œโ”€โ”€ safeTools.js
โ”‚   โ”œโ”€โ”€ serviceAccount.json
โ”‚   โ””โ”€โ”€ database.rules.json
โ”‚
โ”œโ”€โ”€ node_modules/
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ index.html
โ”‚
โ”œโ”€โ”€ .env
โ”œโ”€โ”€ .env.local
โ”œโ”€โ”€ .env.phishblock-demo
โ”œโ”€โ”€ .eslint.cjs
โ”œโ”€โ”€ .firebaserc
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ cors.json
โ”œโ”€โ”€ database.rules.json
โ”œโ”€โ”€ firebase.json
โ”œโ”€โ”€ firestore-debug.log
โ”œโ”€โ”€ firestore.indexes.json
โ”œโ”€โ”€ firestore.rules
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ storage.rules

๐Ÿง  Environment Variables

Key	                        Description
SAFEBROWSING_KEY	        Google Safe Browsing API key (never expires)
WHOIS_API_NINJAS	        API Ninjas WHOIS key
BLOCKCHAIN_RPC	            Polygon Amoy RPC URL
BLOCKCHAIN_PRIVATE_KEY	    Wallet private key (for anchoring)
NFT_TOKEN	                Web3.Storage token
PINATA_JWT	                Pinata API token
VOTE_THRESHOLD          	Upvote limit before auto-anchor

Disclaimer

My Walllet Address is there in one of the post which i kept for judges.

But rather than running it on localhost , I suggest you all to use the link which i gave. Because there are a lot of api keys and environment variables i am using.

Link: https://phishblock-demo.web.app

I would love to get your suggestions and improvements that I can do on this app as I am not planning to stop this yet and continue this and make it polished. Your advise would be really helpful and if any queries relating to variables , please contact me .

Tushar/tung-programming

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.