]> 91.132.146.200 Git - selfpaste.git/summary
 
descriptionPaste service
ownerBanana
last changeThu, 19 Jun 2025 20:20:47 +0000 (22:20 +0200)
readme

selfpaste

selfpaste is a small self hosting paste service.

It is not the aim to replace any other well known paste service. It is an experiment and build for private use only.

This tool uses PHP fileinfo

The functions in this module try to guess the content type and encoding of a file
by looking for certain magic byte sequences at specific positions within the file.
While this is not a bullet proof approach the heuristics used do a very good job.

It is not really bulletproof, but it does the job. Everything can be manipulated to look alike something it isn't.

So, here is a friendly REMINDER:

- Use it at own risk.
- Don't open it up to the public
- Check regularly what is added
- Clean everything what you do not know
- You provide the service by hosting it. Your are responsible for it!
- Change your secret often.

Why json as a response?

In cases the upload is over postmaxsize the request will not "arrive". Meaning the script does not receive enough information to work with. In this case it returns the start page. Which is a valid HTTP 200 status response. So the client can not only rely on the HTTP status code alone.

Third party resources

Link shortening inspired and some code used from: https://www.jwz.org/base64-shortlinks/

shortlog
2025-06-19 BananaMerge branch 'develop' master 1.6
2025-06-19 Bananaversion 1.6 Neon
2025-04-26 Bananamarkdown readme file
2025-04-26 Bananamoved some logic and addede currect mime type info...
2023-11-19 Bananabetter logging and code cleanups
2023-10-09 Bananainit of a new version
2023-10-09 BananaMerge branch 'develop' of Banana/selfpaste into master
2023-10-09 Bananaversion 1.5 8/head 1.5
2023-10-05 Bananaupdated changelog
2023-10-05 Bananacronjob example updated
2023-10-05 Bananago client updates
2023-10-05 Bananac-client-win license notice updated
2023-10-05 Bananalicence and some additional notes in readme
2023-10-03 Bananawebclient php8
2023-10-03 Bananaserver php code cleanup and php8
2023-10-03 Bananaupdate licence
...
tags
6 weeks ago 1.6 Version 1.6 Neon
21 months ago 1.5 v1.5 Fluorine
4 years ago v1.3
4 years ago v1.2
5 years ago v1.1
5 years ago v1.0
5 years ago v0.3-beta 20200101 0.3-beta Lithium
5 years ago v0.2-beta 20191223 version 0.2-beta Helium
heads
6 weeks ago develop
6 weeks ago master
4 years ago nitrogen
4 years ago carbon
5 years ago boron-20200518
5 years ago beryllium
5 years ago lithium