All post requests should contain the invite code!
curl -Fcode="InviteCode" .. https://sb.ma # Or curl -d "code=InviteCode" .. https://sb.ma
HTTP POST files here:
curl -F'file=@yourfile.png' https://sb.ma
You can also POST remote URLs:
curl -F'url=http://example.com/image.jpg' https://sb.ma
If you don't want the resulting URL to be easy to guess:
curl -F'file=@yourfile.png' -Fsecret= https://sb.ma curl -F'url=http://example.com/image.jpg' -Fsecret= https://sb.ma
It is possible to append your own file name to the URL:
https://sb.ma/aaa.jpg/image.jpeg
Files can be set to expire sooner by adding an "expires" parameter (in hours)
curl -F'file=@yourfile.png' -Fexpires=24 https://sb.ma
OR by setting "expires" to a timestamp in epoch milliseconds
curl -F'file=@yourfile.png' -Fexpires=1681996320000 https://sb.ma
Expired files won't be removed immediately but within the next minute.
Whenever a file that does not already exist or has expired is uploaded, the HTTP response header includes an X-Token field. You can use this to perform management operations on the file.
When using cURL, you can add the -i option to view the response header.
To delete the file immediately:
curl -Ftoken=token_here -Fdelete= https://sb.ma/abc.txt
To change the expiration date (see above):
curl -Ftoken=token_here -Fexpires=3 https://sb.ma/abc.txt
Maximum file size: 512.0 MiB
Not allowed:
- application/x-dosexec
- application/x-executable
- application/x-sharedlib
- application/x-hdf5
- application/java-archive
- application/vnd.android.package-archive
- application/x-rar
- application/vnd.microsoft.portable-executable
TERMS OF SERVICE
sb.ma is NOT a platform for:
- piracy
- pornography and gore
- extremist material of any kind
- malware / botnet C&C
- anything related to crypto currencies
- backups
- CI build artifacts
- doxxing, database dumps containing personal information
- anything illegal under German law
Uploads found to be in violation of these rules will be removed, and the originating IP address blocked from further uploads.
Note that Tor exit nodes are blocked by the firewall due to frequent rule violations.
PRIVACY POLICY
For the purpose of moderation, the following is stored with each uploaded file:
- IP address
- User agent string
This site generally does not log requests, but may enable logging if necessary for purposes such as threat mitigation.
No data is shared with third parties.
OPERATOR NOTES
If you run a server and like this site, clone it! Centralization is bad.
https://git.cschad.com/sb.ma
You can also support it financially via Liberapay.
Hosting costs about 60 EUR a month.
FILE RETENTION PERIOD
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3) days 365 | \ | \ | \ | \ | \ | \ | .. | \ 197.5 | ----------..------------------------------------------- | .. | \ | .. | ... | .. | ... | .... | ...... 30 | .................... 0 256.0 512.0 MiB