jordansamuel / PASTE

Paste is a project that started from the files pastebin.com used before it was bought.
https://phpaste.sourceforge.io/
GNU General Public License v3.0
296 stars 106 forks source link

[Feature] Capture User Agents for log #182

Closed ProSamuraidev closed 3 years ago

ProSamuraidev commented 3 years ago

Hi, After I install the project and check the source code, I didn't find any column that relate to user Agent, is there any way to check and log the ip and user Agent in pastes.php?

thinkverse commented 3 years ago

For now, there are no plans to add that, I will mark this a feature request though so maybe in the future. 🙂

But the user agent can be grabbed via $_SERVER['HTTP_USER_AGENT']. You could update the table schema and add that in your own version, though keep in mind that when you're updating to a newer version of Paste down the line your changes could be overwritten.