Simple upload filter script for Article 13 of EU copyright reform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

6 years ago
  1. # uploadfilter
  2. Simple upload filter script for Article 13 of EU copyright reform.
  3. **This is example code and not for any production usage!**
  4. This is more a demonstration of how an upload filter could work.
  5. * security checks missing
  6. * some logical checks missing, see code comments
  7. ## How it works
  8. All content uploaded will trigger 1-n emails to EU representatives with an exclusive token link to access and review the content. The validation of the content is stored in a database, so you can look-up if a file is validated as copyright free or a copyright infringement is reported. Based on this data, you can publish or block the content on your plattform.
  9. ## Requirements
  10. * php
  11. * php sqlite3 extension
  12. ## Setup
  13. * import email adresses from EU representative to the *emails* table
  14. * adresses can be found on [https://saveyourinternet.eu/act/](https://saveyourinternet.eu/act/)
  15. * change configuration in *db.php* and email template to your needs
  16. * **path to files should not be accessible from web**
  17. ## Usage
  18. * content is uploaded to *upload.php* and triggers database entries and token emails
  19. * to make the file accessible on your platform, review it's validation status in *validations* table; publishing of mapping of who validated which content is also possible