Admin Login

PSB AI Blog System ยท psbaitools.com

AI Blog System

psbaitools.com ยท Secure PHP Proxy
๐Ÿ”’ SECURE
๐Ÿ”’ API key is protected โ€” all requests go through your PHP server proxy. Frontend never exposes your key.
โœ๏ธ AI Writer
โšก Auto Blog
๐Ÿ“… Schedule
๐Ÿ”ง Setup Guide
๐Ÿ–ผ๏ธ Images
๐Ÿ“ค Blogger
๐Ÿ’ฐ AdSense
๐Ÿ“ˆ Analytics
๐Ÿ”” Alerts
๐ŸŒ Sitemap
0
Posts Generated
0
Words Written
๐Ÿ”’
Key Protected
โœ๏ธ
Generate Blog Post
Free AI Tools for Students How to Compress PDF Online AI Resume Builder Guide Best Tech Tools for Small Business Prompt Engineering Basics How to Make Passport Photo Free
Claude AI is writing your blog post...
โšก Auto Blog generates and queues posts automatically. All requests go through your secure PHP proxy.
๐Ÿค–
Auto-Generate Batch Posts
Generating posts...
๐Ÿ“…
Content Calendar
#Post TitleScheduled DateStatusAction
No posts scheduled yet.

โœ… What the PHP Proxy Does

  • ๐Ÿ”‘ Keeps your Anthropic API key hidden on the server
  • ๐Ÿ›ก๏ธ Only allows requests from psbaitools.com
  • โฑ๏ธ Rate limits to 20 requests/hour per IP
  • ๐Ÿงน Sanitizes all user input before sending to Claude
  • โŒ Blocks all non-POST requests
๐Ÿ“
Step 1 โ€” Upload Files

Upload these files to your hosting via cPanel File Manager or FTP:

psbaitools.com/ โ””โ”€โ”€ blog/ โ”œโ”€โ”€ proxy.php โ† PHP API proxy โ”œโ”€โ”€ db.php โ† MySQL database API (NEW) โ”œโ”€โ”€ index.html โ† Blog admin panel โ””โ”€โ”€ rate_limit.json โ† Auto-created by proxy.php
๐Ÿ’พ
Step 2 โ€” Database Setup (MySQL)

Create a MySQL database in cPanel, then update db.php:

// In cPanel โ†’ MySQL Databases: // 1. Create database: psb_blog // 2. Create user: psb_user // 3. Assign All Privileges // Then update db.php lines 12-15: define('DB_NAME', 'psb_blog'); define('DB_USER', 'psb_user'); define('DB_PASS', 'your_password'); // โœ… Table creates automatically on first use!
๐Ÿ”‘
Step 3 โ€” Add Your API Key

Open proxy.php and replace line 14:

// Change this line: define('ANTHROPIC_API_KEY', 'YOUR_ANTHROPIC_API_KEY_HERE'); // To your real key: define('ANTHROPIC_API_KEY', 'sk-ant-api03-xxxxxxxxxxxxxxxx');
๐ŸŒ
Step 3 โ€” Update Proxy URL

In index.html, update the proxy URL in the JavaScript (search for PROXY_URL):

// Change this: const PROXY_URL = 'http://localhost/blog/proxy.php'; // To your live URL: const PROXY_URL = 'https://psbaitools.com/blog/proxy.php';
โœ…
Step 4 โ€” Test It

Visit your blog admin and generate a test post. Check browser console โ€” you should see requests going to proxy.php, not api.anthropic.com directly.

โš ๏ธ Make sure rate_limit.json is writable by the server. In cPanel, set its permissions to 644.
๐Ÿ–ผ๏ธ Generate beautiful featured images for your blog posts using AI. Images are created as SVG graphics โ€” download and upload to Blogger.
๐ŸŽจ
Generate Featured Image
Designing your featured image...
๐Ÿ“š
Image Gallery (Recent)

๐Ÿš€ Blogger Publisher

Create, preview and publish professional posts directly to Blogger. Your existing AI Writer, Auto Blog, Scheduler, Images, AdSense, Analytics, Alerts and Sitemap sections remain unchanged.

๐Ÿ”—
Blogger Connection
Find it in Blogger โ†’ Settings โ†’ Blog ID.
Use an OAuth token with Blogger API write permission.
๐Ÿ”‘ Get Token โ†—
๐Ÿ“
Create & Publish Post
JPG, PNG or WEBP ยท max 5 MB
The image is added at the top of the Blogger post. Uploaded images are stored on your server.
Feature image preview
Save as Draft first
Review on Blogger before going live
Publishing...
๐Ÿ‘๏ธ
Live Preview
Preview feature image
PSB TECH SOLUTIONS ยท BLOG

Your blog title will appear here

Start writing your article to see a preview.

๐Ÿ’ก Publishing flow

1. Add your feature image.
2. Write or load your article.
3. Test Blogger connection.
4. Click Publish Now.
5. The system reports the exact Blogger API result.

๐Ÿ“‹
Saved Posts Queue
Click "Load Saved Posts" to load from database
๐ŸŒ
Live Posts on Blogger
Connect and refresh to see your live posts
๐Ÿ“–
How to Get Access Token
Step 1: Go to https://developers.google.com/oauthplayground Step 2: Select & authorize APIs: โ†’ Type: https://www.googleapis.com/auth/blogger โ†’ Click "Authorize APIs" โ†’ Sign in with Google Step 3: Click "Exchange authorization code for tokens" โ†’ Copy the "Access token" Step 4: Paste it above in "Google Access Token" Step 5: Get Blog ID: Blogger Dashboard โ†’ Settings โ†’ Blog ID (Number in your Blogger URL) โš ๏ธ Token expires in 1 hour โ€” regenerate when needed
๐Ÿ’ฐ Configure your Google AdSense ads. Once approved, paste your Publisher ID and Ad Unit IDs below โ€” the system will auto-inject ads into every generated post.
0
Posts with Ads
3
Ad Units Ready
โณ
AdSense Status
๐Ÿ”‘
AdSense Publisher Settings
Auto-inject ads into generated posts
Ads added automatically when saving/publishing
Responsive ads (auto-size)
Adapts to mobile and desktop screens
๐Ÿ‘๏ธ
Ad Code Preview

This is the exact code that gets injected into your blog posts:

<!-- PSB AdSense Top --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="1234567890" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<!-- PSB AdSense Mid --> <ins class="adsbygoogle" style="display:block;text-align:center" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="0987654321"></ins> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<!-- PSB AdSense Bottom --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="1122334455" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
๐Ÿ“–
AdSense Approval Checklist
โœ… Custom domain connected (psbaitools.com)
Required for AdSense approval
โœ…
๐Ÿ“ 20+ original blog posts published
Minimum content requirement
โณ
๐Ÿ“„ Privacy Policy page exists
Required by Google AdSense
โœ…
๐Ÿ“ž About & Contact pages exist
Shows site legitimacy
โœ…
๐Ÿšซ No copied/plagiarized content
All posts AI-generated = original
โœ…
๐Ÿ“ฑ Mobile responsive design
Blogger themes are responsive by default
โœ…
๐Ÿ’ฐ Apply for AdSense Now โ†—
๐Ÿ“ˆ
Earnings Estimator
Estimated Monthly Earnings
โ‚น100
1000 visitors ร— 2 pages ร— 2% CTR ร— โ‚น5 CPC
๐Ÿ“ˆ Track your blog performance. Connect Google Analytics for real-time data, or use the built-in post tracker below.
0
Total Posts
0
Published
0
Queued
0
Total Words
๐Ÿ”—
Google Analytics 4 Setup
๐Ÿ“Œ Add to Blogger: Theme โ†’ Edit HTML โ†’ <head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script> <script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-XXXXXXXXXX');</script>
๐Ÿ“Š
Post Performance Tracker
#TitleLanguageWordsStatusDate
Click a filter above to load posts
๐ŸŒ
Language Breakdown
Load posts to see breakdown
๐Ÿ”” Get notified on WhatsApp or Email whenever a post is published or scheduled.
๐Ÿ’ฌ
WhatsApp Alerts (via Twilio)
Alert on post published
WhatsApp message when post goes live
Daily summary at 9 AM
Posts scheduled for today
๐Ÿ“ง
Email Alerts
Email on post published
Includes post title and URL
Weekly performance report
Every Monday 9 AM IST
๐Ÿ“„
PHP Alert Code
// Add to blogger.php after successful publish: function sendAlerts($title, $url, $to, $from) { $subject = "New Post Published: {$title}"; $msg = "Published!\nTitle: {$title}\nURL: {$url}"; mail($to, $subject, $msg, "From: {$from}"); } // Call: sendAlerts($title, $result['url'], 'popatbhange@gmail.com', 'blog@psbaitools.com');
๐ŸŒ Generate sitemap.xml and submit to Google Search Console for faster indexing.
โš™๏ธ
Sitemap Settings
Include homepage
Include scheduled/queued posts
๐Ÿ”
Submit to Google Search Console
Step 1: Upload sitemap.xml to psbaitools.com/sitemap.xml Step 2: Go to search.google.com/search-console Step 3: Select property โ†’ Sitemaps Step 4: Enter "sitemap.xml" โ†’ Submit Step 5: Google indexes posts in 1-7 days โœ…
๐Ÿค–
robots.txt