Quick Start
Get started with Base Cloack in just 5 minutes. Follow these simple steps to protect your website from unwanted traffic.
Step 1: Start the Bot
Open Telegram and start a conversation with our bot:
- Click @basecloak_bot or search for "Base Cloak" in Telegram
- Press the
/startbutton - Choose your preferred language (English or Russian)
- Accept the Terms of Service
Step 2: Purchase a Subscription
Select a plan that fits your needs:
- Click "Buy Subscription" in the main menu
- Choose your plan (Lite, Premium, or Unlimited)
- Select the subscription period
- Complete payment through CryptoBot (USDT)
Note: You can top up your balance first and then purchase a subscription.
Step 3: Add Your Domain
Register your website domain:
- Click "My Domains" in the main menu
- Click "Add Domain"
- Enter your domain name (e.g.,
example.com) - Wait for confirmation
Step 4: Configure Filters
Set up your protection rules:
- Click on your domain in "My Domains"
- Configure the following options:
- Bot Blocking: Enable to block known bots and scrapers
- Country Filtering: Select countries to block or allow
- IP Blocking: Add specific IP addresses to blacklist
- ASN Filtering: Block VPNs, proxies, and datacenters
- Set your redirect URL (where blocked visitors will be sent)
Step 5: Download PHP Script
Get your protection script:
- In domain settings, click "Download Script"
- Click "Get PHP Script"
- Save the file (e.g.,
cloaking_example_com.php)
Important: Do not modify the script file! It contains cryptographic signatures that will break if changed.
Step 6: Upload to Server
Install the script on your web server:
- Connect to your server via FTP, SFTP, or SSH
- Upload the PHP file to your website's root directory:
/public_html/(cPanel)/var/www/html/(Linux)/httpdocs/(Plesk)
- Rename the file to
cloaking.php(optional but recommended)
Step 7: Integrate with Your Site
Add the protection to your website:
Method 1: Include in index.php (Recommended)
<?php
// Add this at the very top of your index.php
require_once 'cloaking.php';
?>
Method 2: Auto-prepend (Advanced)
Add to your .htaccess file:
php_value auto_prepend_file "/path/to/cloaking.php"
Method 3: php.ini (Server-wide)
Add to your php.ini file:
auto_prepend_file = "/path/to/cloaking.php"
Step 8: Test Your Setup
Verify everything is working:
- Visit your website in a normal browser - you should see your site normally
- Check the bot for statistics - you should see visitor data
- Test with a VPN or proxy - blocked visitors should be redirected
- Check for any PHP errors in your server logs
Requirements
Your server must meet these requirements:
- PHP Version: 7.4 or higher (8.0+ recommended)
- cURL Extension: Must be enabled
- JSON Extension: Must be enabled
- File Permissions: PHP file must be readable
- Internet Access: Server must be able to make outbound HTTPS requests
Troubleshooting
Script not working?
- Check PHP version:
<?php echo phpversion(); ?> - Verify cURL is enabled:
<?php echo function_exists('curl_init') ? 'Yes' : 'No'; ?> - Check file permissions (should be 644 or 755)
- Look for errors in PHP error log
Getting "Script integrity violation" error?
- Do not modify the PHP file in any way
- Re-download the script from the bot
- Make sure you uploaded the file in binary mode (not ASCII)
- Check that the file wasn't corrupted during upload
Visitors not being blocked?
- Verify filters are enabled in domain settings
- Check that the script is included before any output
- Make sure the API server is running
- Test with a known bot user-agent or blocked country
Site is slow after installation?
- The script adds minimal overhead (< 50ms typically)
- Check your server's internet connection speed
- Consider using a CDN for your main content
- Contact support if issues persist
Viewing Statistics
Monitor your protection in real-time:
- Open the Telegram bot
- Go to "My Domains"
- Click on your domain
- Click "Statistics" to view:
- Total blocks by reason
- Top blocked countries
- Top blocked IPs
- Traffic graphs by day/hour
Need Help?
If you encounter any issues or have questions:
- Contact support through the Telegram bot
- Check our FAQ section in the bot
- Email us at: support@basecloak.com
You're All Set!
Congratulations! Your website is now protected by Base Cloak. Monitor your statistics regularly and adjust filters as needed to optimize your traffic quality.