Overview
Pastebox.ir is a web application for sharing text pastes and files under a short four-digit code. It is designed to work without user accounts, and it does not sell, profile, or monetize user data.
This policy explains what is stored when you create or open a paste, and how long it is kept.
Information You Provide
When you create a paste, the following is stored in our database: the paste content you write, an optional password (stored only as a one-way hash generated with password_hash), the expiry duration you select, whether burn-after-reading is enabled, and the creation and expiry timestamps. If you attach a file, its original filename, MIME type, size, and a randomly generated storage name are recorded alongside it.
Technical Information
A session cookie is set to enable CSRF protection, flash messages, and rate limiting. Rate-limit counters are kept in your session and are short-lived. Server logs may record standard request metadata such as IP address, user agent, and timestamps for security and abuse prevention.
How Pastes Are Stored
Paste content is stored on the server until it expires, is opened under burn-after-reading, or is removed by the cleanup job. Uploaded files are stored under randomized filenames and are only served through a controlled download endpoint rather than by direct URL.
Retention and Deletion
Every paste has an expiry timestamp set when it is created. A scheduled cleanup job permanently deletes expired pastes and their attachments. Pastes marked burn-after-reading are deleted on first successful view. Deleted content cannot be recovered by you or by us.
Data Sharing
Pastebox.ir does not sell, rent, or share paste content with third parties. There is no advertising, third-party analytics, or tracking pixel on the service. Data may be disclosed only where required by applicable law or to protect the service from abuse.
Security
Database access uses PDO prepared statements, forms are protected with CSRF tokens, and output is escaped to reduce XSS risk. Uploaded files are validated by both extension and MIME type. No system can be guaranteed perfectly secure, so avoid sharing highly sensitive material such as private keys or long-term credentials.
Your Choices
You control the expiry window for every paste and can enable password protection or burn-after-reading. Because there are no accounts, we cannot look up, export, or restore pastes on your behalf after they have been deleted.
Children's Privacy
Pastebox.ir is not directed at children and does not knowingly collect personal information from them. If you believe a child has submitted personal information, contact us so it can be removed.
Changes to This Policy
This privacy policy may be updated if the application's functionality or data practices change. The latest version will always be published at this URL with a revised effective date.
Contact
For questions about this privacy policy, contact: