Skip to content

Codepolice

  • ⤫

Generate expiring urls for Amazon S3 via a WordPress Plugin

Posted by Judy Alvarez Posted on February 25, 2022March 1, 2022
0

I am a .net developer and haven’t done any PHP work ever. But I use WordPress and for some time now I have been looking for a plugin that could generate a URL for Amazon S3 that is “signed” and will expire after a certain amount of time.

I posted the question on both WordPress and amazon forums but haven’t got any replies. Well .. maybe I did not explain my problem well or nobody else is interested in this.

So I figured I had to take care of this myself. And as I said. I’m a total newbie in both PHP and WordPress plugins so my plugin is probably really really stupid and I would be happy if somebody could send suggestions on how to make it better. But it works.

How does it work?

You just add

[S3 bucket=yourbucket text=your link text]the_object_name.txt[/S3]

to your post or page and it will generate expiring URLs that no leecher can link to. If you don’t supply and link text it will not generate a link and just print the URL. I use the same bucket names as URLs (like netplay.whoa.nu) and if you use Amazon standard URLs you must change this.

Categories: JavascriptTagged: best hosting for wordpress convesio, bitnami wordpress, cms wordpress, elementor wordpress, install wordpress, localhost wordpress, localhost wordpress wp admin, login wordpress, que es wordpress, theme wordpress, themeforest wordpress, wordpress admin, wordpress admin login, wordpress com, wordpress com login, wordpress developer, wordpress development, wordpress ecommerce, wordpress elementor, wordpress log in, wordpress logo, wordpress multisite, wordpress org login, wordpress plugin, wordpress que es, wordpress seo, wordpress template, wordpress theme detector, wordpress ログイン

Post navigation

Previous Previous post: Cascade delete in Entity Framework
Next Next post: StackoverflowException with ASP.NET MVC

Related Posts

  • Bringing Python apps into Node

    #​596 — October 14, 2025 Read on the Web 📂 A Modern Guide to Reading and Writing Files in Node — A comprehensive guide to various methods for working with files, from promise-based methods through to working with streams, processing files concurrently, using file handles, and memory-efficient techniques. Luciano Mammino A Way to Integrate Python ASGI with Node.js

    Posted by Posted on October 14, 2025
    0
  • Vite gets its own documentary

    #​756 — October 10, 2025 Read on the Web JavaScript Weekly ▶  Vite: The Documentary — From the same creators of the fantastic ▶️ Node.js, ▶️ Angular and ▶️ React documentaries comes an up to date look at Vite, the build tool that has taken the JavaScript ecosystem by storm in recent years. Many luminaries make an appearance to

    Posted by Posted on October 10, 2025
    0
  • npm security best practices to consider

    #​595 — October 7, 2025 Read on the Web 15 Recent Node Features That Can Replace Popular npm Packages — Many features that once required third-party packages are now built into the runtime itself. Here’s a look at some of the most notable that you may want to experiment with, prior to reducing unnecessary dependencies. Lizz

    Posted by Posted on October 7, 2025
    0
  • React 19.2 is in the building

    #​755 — October 3, 2025 Read on the Web JavaScript Weekly The State of JavaScript 2025 Survey — Each year, Devographics runs an epic survey of as many JavaScript community members as it can and turns the results into an interesting report on the state of the ecosystem – here’s the results from 2024. If

    Posted by Posted on October 3, 2025
    0
  • Using Node with Cloudflare Workers

    #​594 — September 30, 2025 Read on the Web 🗓️ We’re back after taking a week off for my birthday. I’ve never bothered to do that before, but I figured I’d give it a go, and.. it was good 😅 We’re now back every week until Christmas!__Peter Cooper, your editor A Year of Improving Node.js

    Posted by Posted on September 30, 2025
    0
  • The first browser with JavaScript landed 30 years ago

    #​754 — September 26, 2025 Read on the Web JavaScript Weekly Give Your AI Eyes: Introducing Chrome DevTools MCP — The Chrome team has released an MCP server for Chrome DevTools, enabling agents like Claude Code or OpenAI Codex to use the DevTools to debug and analyze the performance and behavior of your webapps (or

    Posted by Posted on September 26, 2025
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • Bringing Python apps into Node
  • Vite gets its own documentary
  • npm security best practices to consider
  • React 19.2 is in the building
  • Using Node with Cloudflare Workers
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice