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
- ๐ 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
| 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 |
git clone https://github.com/tung-programming/BlockquestWeek1
cd PhishBlockcd frontend
npm install
npm run dev
Runs locally on http://localhost:5173
cd ../functions
npm install
firebase functions:config:set \
safebrowsing.key="YOUR_GOOGLE_SAFE_BROWSING_KEY" \
whois.apininjas="YOUR_API_NINJAS_KEY" \
virustotal.key="(future)" \
urlscan.key="(future)"
firebase deploy --only functions:safeTools
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
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
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
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