A secure, AJAX-powered WordPress plugin that enables FDE Domestic courier tracking via shortcode and direct URL. Integrates seamlessly with WooCommerce Shipment Tracking plugin with enterprise-level security measures.
Fardar Tracking by BitLab for WooCommerce provides secure, AJAX-powered shipment tracking using the FDE Domestic courier service. This plugin offers a clean, user-friendly interface for customers to track their shipments directly on your WordPress website with enterprise-level security measures.
- AJAX-Powered Tracking: Fast, responsive tracking without page reloads
- Enhanced Security: Rate limiting, input validation, and XSS protection
- WooCommerce Integration: Seamless integration with WooCommerce Shipment Tracking
- Bootstrap UI: Modern, responsive design using Bootstrap 5.3.3
- Direct URL Support: Share tracking links directly with customers
- Admin Settings: Easy configuration through WordPress admin panel
- GPL Licensed: Open source and follows WordPress.org standards
- Rate Limiting: Maximum 10 requests per minute per IP address
- Input Validation: Strict alphanumeric validation for tracking numbers
- Nonce Verification: All AJAX requests are protected with WordPress nonces
- Secure API Handling: Timeout protection and SSL verification for external requests
- Content Sanitization: XSS protection through strict HTML filtering
- Proper Escaping: All outputs are properly escaped to prevent injection attacks
- Event Handler Removal: Automatic removal of potentially dangerous JavaScript event handlers
- Download the plugin files
- Upload the
fardar-tracking-bitlabfolder to your/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Plugins > Add New in your WordPress admin
- Search for "Fardar Tracking by BitLab"
- Click "Install Now" and then "Activate"
- Go to Settings > Fardar Tracking in your WordPress admin
- Select a page where you want to display the tracking form
- Save your settings
Add the shortcode to any page or post:
[bitlab_fardar_tracking]
Create direct tracking links using the format:
https://yourdomain.com/your-tracking-page?trackingno=IND123456
The plugin automatically registers "Fardar" as a tracking provider in WooCommerce Shipment Tracking plugin.
The plugin uses Bootstrap 5.3.3 for styling. You can customize the appearance by:
- Adding custom CSS to your theme
- Overriding Bootstrap classes
- Modifying the plugin's CSS file at
assets/css/bootstrap.min.css
- WordPress: 5.0 or higher
- PHP: 7.4 or higher
- WooCommerce: 3.0+ (for WooCommerce integration)
- WooCommerce Shipment Tracking: (optional, for enhanced integration)
- Admin Settings Page: Configure tracking page and view security features documentation
- AJAX Tracking Form: Clean Bootstrap-based UI for tracking input
- Direct Tracking Page: Example of tracking results display
- WooCommerce Integration: Seamless integration with WooCommerce Shipment Tracking
The plugin implements multiple security layers:
- Uses WordPress transients to track requests per IP
- Limits to 10 requests per minute per IP address
- Automatically cleans up expired rate limit data
- Strict regex validation for tracking numbers (
/^[A-Za-z0-9]{3,20}$/) - Server-side and client-side validation
- Proper sanitization using
sanitize_text_field()
- Nonce verification for all AJAX requests
- Proper error handling and user feedback
- Timeout protection (30 seconds) for external API calls
- Whitelist approach for allowed HTML tags
- Automatic removal of
<script>,<style>, and<iframe>tags - Removal of JavaScript event handlers
- Use of
wp_kses()for content filtering
- SSL verification enabled
- Proper user agent identification
- Timeout protection
- Error handling for failed requests
For support and questions:
- Website: bitlab.lk
- Email: Contact through the website
- Documentation: Check the plugin's admin settings page for usage instructions
- Complete security overhaul with AJAX implementation
- Rate limiting (10 requests per minute per IP)
- Enhanced input validation and sanitization
- Nonce verification for all requests
- Secure external API handling with timeout protection
- Content sanitization and XSS protection
- Improved error handling and user feedback
- Bootstrap 5.3.3 integration
- WordPress 5.0+ compatibility
- PHP 7.4+ requirement for enhanced security
- Internationalization support with text domain loading
- Proper plugin hooks (activation, deactivation, uninstall)
- Conditional script loading for better performance
- WooCommerce Shipment Tracking integration
- Bootstrap styling added to frontend form
- Enhanced admin instructions and security
- Dynamic tracking page URL based on admin selection
- Added WooCommerce Shipment Tracking integration
- Dynamic tracking page URL based on admin selection
- Improved admin instructions and security
- Bootstrap styling added to frontend form
- Stable release for WordPress.org submission
- Initial release with shortcode and tracking functionality
This plugin is licensed under the GPL v2 or later.
Copyright (C) 2024 BitLab (Pvt) Ltd
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
fardar-tracking-bitlab/
βββ assets/
β βββ css/
β β βββ bootstrap.min.css
β βββ js/
β βββ tracking.js
βββ languages/
βββ fardar-tracking-bitlab.php
βββ readme.txt
βββ README.md
βββ .gitignore
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This plugin follows WordPress.org plugin guidelines:
- β Proper plugin headers
- β Security best practices
- β Input validation and sanitization
- β Proper escaping of outputs
- β Nonce verification
- β Rate limiting
- β GPL compatible license
- β Proper file structure
- β Internationalization support
- β Activation/deactivation hooks
- Developed by: BitLab (Pvt) Ltd
- Bootstrap: Bootstrap 5.3.3
- FDE Domestic: fdedomestic.com
Built with β€οΈ by BitLab (Pvt) Ltd
For more information, visit bitlab.lk