A modern, secure, and user-friendly web application for sharing text with unique, temporary links. Visit MyCopyPaste to try it out!
MyCopyPaste is a lightweight, secure text sharing solution that allows users to share text content through unique, one-time access links. Built with PHP 8.0+ and MySQL, this application provides a clean, modern interface for quick text sharing with enhanced security features. Perfect for sharing sensitive information, temporary access codes, or any text content that should only be viewed once. Features include one-click copy functionality, text download options.
- Text Sharing: Share any text content with a unique, temporary link
- One-Time Access: Links become invalid after first use for enhanced security
- Clean Interface: Modern, responsive design with a user-friendly experience
- Copy to Clipboard: One-click copy functionality for shared content
- Download Option: Download shared text as a .txt file
- Mobile Responsive: Works seamlessly on all devices
- Clone the repository:
git clone https://github.com/ahk780/MyCopyPaste.git
cd MyCopyPaste
- Import the database:
mysql -u your_username -p your_database < database.sql
-
Configure your web server (Apache/Nginx) to point to the project directory
-
Update the database connection settings in
config.php
:
define('DB_HOST', 'localhost');
define('DB_USER', 'your_username');
define('DB_PASS', 'your_password');
define('DB_NAME', 'your_database');
- PHP 8.0 or higher
- MySQL 5.7 or higher
- Web server (Apache/Nginx)
- mod_rewrite enabled (for Apache)
The application uses a single table copies
with the following structure:
CREATE TABLE `copies` (
`id` int(11) NOT NULL,
`unique_key` varchar(8) NOT NULL,
`text` text NOT NULL,
`user_ip` varchar(45) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 0,
`created_at` datetime NOT NULL,
`used_at` datetime DEFAULT NULL,
`used_by_ip` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
id
: Auto-incrementing primary keyunique_key
: 8-character unique identifier for the shared contenttext
: The shared text contentuser_ip
: IP address of the content creatorstatus
: Content status (0 = unused, 1 = used)created_at
: Timestamp of content creationused_at
: Timestamp of first accessused_by_ip
: IP address of the first viewer
- One-time access links
- XSS protection
- SQL injection prevention
- Input sanitization
The application uses a clean, modern design with a green color scheme. You can customize the appearance by modifying the CSS variables in css/style.css
:
:root {
--primary-color: #10B981;
--primary-hover: #059669;
/* ... other variables ... */
}
The application is fully responsive and works on:
- Desktop browsers
- Mobile devices
- Tablets
- All modern web browsers
Contributions are welcome! Please feel free to submit a Pull Request.
For support, feature requests, or bug reports:
- Visit MyCopyPaste
- Contact the developer on Telegram: @ahk780
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all contributors and users
- Special thanks to the open-source community
Made with ❤️ by @ahk780