PasteLink - Lightweight Self-Hosted PHP Pastebin Script with Built-in Ad Monetization
PasteLink is a fast, lightweight PHP & MySQL pastebin script for shared hosting or VPS. Includes password-protected pastes, expiry control, admin dashboard, IP banning, spam filters, and a built-in ad/link rotation system to monetize every page. Easy 5-step installer, no bloat, no extra frameworks.
✓ Recently UpdatedDescription
Run your own pastebin. Keep 100% of the traffic.
PasteLink is a lightweight, self-hosted text-sharing platform — the kind of site people visit dozens of times a day to save code, notes, and text. Every visit is a page you control, an ad slot you own, and traffic you never have to share with a big platform.
Every page is a page you can monetize
A pastebin site isn't just a text tool — it's a repeat-visit machine. People come back to check their pastes, share links, and read shared content. That's exactly the kind of traffic that turns into ad revenue.
01- Every Paste Page = Ad Inventory
Each newly created paste and every paste view is a fresh page load. Drop in any ad network code once, and it shows on every single paste page across the site — no limits on how many pastes are created.
02- Companion Link Rotation
Built-in system that inserts rotating promotional/affiliate links inside or around paste content automatically. Set it once, and every paste on the site helps push traffic to whatever links you're promoting that week.
03- Repeat-Visit Design
Password-protected pastes, expiry timers, and "recent pastes" pages give people a reason to come back to the same URL again and again — each return visit is another ad impression.
04- Zero Revenue Sharing
This isn't a plugin bolted onto someone else's platform. It's your own domain, your own database, your own ad tags. Nothing is sent to a third-party dashboard and nothing is taken as a cut.
05- Multiply the Model
Because it's a lightweight file-based script, you can deploy it again on a second domain, a third domain, a niche keyword domain — each one a fresh site pulling its own search traffic and its own ad impressions.
06- Resell-Ready Product
Package it up and flip it to other webmasters who want their own pastebin site. A finished, working script with an admin panel and installer is a product on its own.
Small script. Full feature list.
Nothing here is a stripped-down demo. It's a complete pastebin with the features people actually expect, minus the bloat that slows heavy platforms down.
Public-Facing Site
- Create paste with title, content, and syntax render mode
- Public or Private visibility control per paste
- Optional password lock on any individual paste
- Flexible expiry options (minutes to permanent)
- Auto-generated short, clean slugs for every paste
- "Recent Public Pastes" discovery page
- Clean URLs with no ugly query strings
- About, Contact, Privacy & Disclaimer pages included
- Auto sitemap generation for search engines
Admin Control Panel
- Dashboard with live stats and visual charts
- View, search, edit, and delete any paste
- Bulk-select and bulk-delete pastes in one click
- Ban or unban any visitor IP address
- One-click "Ban" straight from the paste list
- Banned-word filter to auto-block unwanted content
- Site name, URL, and settings — all editable from a UI
- Change admin password from the panel, no code editing
Anti-Abuse & Security
- CAPTCHA verification on paste submission
- IP ban list checked automatically on every submit
- Blocked-domain filter stops spam links in content
- CSRF token protection on every form
- All output escaped to prevent injection attacks
- Passwords hashed with strong bcrypt hashing
- Sensitive folders locked down at the server level
Setup & Hosting
- Guided 5-step web installer, no manual file editing needed
- Works out of the box on shared hosting (cPanel-style panels)
- Also deploys cleanly on any VPS, Apache or Nginx
- Single config file for database and site settings
- One simple database — no complex schema to manage
- No Node, no Composer, no build step — pure PHP
- Runs comfortably on entry-level hosting plans
An admin panel that actually shows you the numbers
Everything an owner needs to run and grow the site, in one dashboard.
PasteLink vs. the heavyweight platforms
Big platforms like Pastebin and JustPaste carry years of extra code, extra dependencies, and infrastructure built for millions of users. That weight becomes someone else's advantage — not yours, and not the buyer's.
PHP 7.4+ Minimum requirement
MySQL / MariaDB Single lightweight database
1 Config file to edit
5 Steps Guided web installer
cPanel + VPS Works on both
0 External frameworks required
A pastebin site, ready to make money on day one.
Upload it, run the installer, drop in your ad codes, and the site is live — every paste created from that point on is a page working for you.