# XAntibot Blocker (PHP) This documentation explains how to install and integrate the XAntibot Blocker (PHP) into your project. The main purpose of this script is to manage Device Permission, Search Engine Permission, Social Media Permission, and Bot Permission, ensuring that only valid traffic is allowed. --- ## Requirements - PHP (version required by the package) - Access to upload PHP files to your web server or hosting account --- ## 1. Download Package Download the package from your developer dashboard or from the distribution archive: - Package file: `xantibot-blocker.php` If you have an account, download it from your dashboard. --- ## 2. Example Folder Structure Place the `xantibot-blocker.php` file as shown below. Other PHP files will include it using `require`. ``` /public_html ├── pages/ ← Folder containing your sub-pages │ ├── files.php ← Page that loads the blocker │ └── files2.php ← Another page that loads the blocker ├── xantibot-blocker.php ← Main antibot script ├── index.php ← Homepage └── .htaccess ← Server configuration (optional) ``` --- ## 3. Integration Add the required `require` line at the very top of your PHP files before any other code or output. Examples: - `index.php` ```php var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/691f937916325219597e0f70/1jahlg5hr'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })();