Download the PHP package ffans/link-guard without Composer

On this page you can find all versions of the php package ffans/link-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package link-guard

FFans Link Guard

License Flarum Version Flarum Version Release Date Total Downloads Monthly Downloads

A Flarum extension. Adds a confirmation page before users follow external links in posts. Users can review the destination address before deciding whether to continue.

Link Guard provides a reminder before leaving the forum. It does not check, verify, or guarantee the safety of the destination website.

Features

Compatibility

Flarum Version Extension Version Branch
2.x 2.x 2.x
1.x 1.x 1.x

Installation

Install with Composer:

Updating

Admin Settings

Open the FFans Link Guard extension page in the admin dashboard:

Setting Description Default when blank
Warning title Custom title for the confirmation page. Plain text only. “You are about to leave {forumName}”
Warning message Custom warning text. Line breaks are supported; HTML and Markdown are not parsed. “Please keep your account and personal information safe.”
Trusted domains One domain rule per line. Matching links bypass the warning. All HTTP/HTTPS links to a different origin show the warning.
Use Modal Warning If enabled, the warning will be shown via modal. Independent warning page by default.

After saving, reload any open forum pages to apply the new settings.

Trusted Domains

For example, to trust github.com, example.com, and all subdomains of example.com:

Rule Matches Does not match
github.com github.com www.github.com, gist.github.com, evilgithub.com
*.example.com www.example.com, a.b.example.com example.com, fakeexample.com

Trusted rules match the hostname regardless of HTTP/HTTPS or the destination port. Adding a domain to the trusted list only skips the confirmation page; it does not mean the extension has verified that the website is safe.

Protection Scope

Only links in the body of Flarum comment posts (CommentPost) are processed.

The following links retain their original behavior:

“Same origin” means the protocol, hostname, and port all match. For example, if the forum is at https://forum.example.com, neither http://forum.example.com nor https://forum.example.com:8443 has the same origin. These links still show the warning unless a trusted domain rule matches. Same-origin links do not need to be added to the trusted list.

Headers, footers, user profiles, the admin dashboard, OAuth / SSO flows, buttons provided by third-party extensions, and custom post types are outside the current scope. Link Guard does not intercept external links across the entire site.

Warning Page Behavior

The warning page is available at the forum's /link-guard route. It is publicly accessible and requires no permission configuration.

If "Show in modal" enabled, the warning will be shown via modal.

For Independent Page:

Permissions

Link Guard does not register custom permissions. Guests, members, moderators, and administrators follow the same rules. Trusted domains control which external links bypass the warning.

Privacy and Limitations

The destination address is passed in a URL fragment, such as /link-guard#url=..., rather than a query parameter. The fragment is not sent to the server in the HTTP request for the warning page, so it does not enter server request logs through that request. It remains available to scripts on the warning page.

Link Guard does not request the destination website, use third-party security checks, or record click statistics or external link history. It uses Flarum's native settings and does not create application-specific database tables.

Link processing runs in the forum frontend and requires JavaScript to work.

GDPR Integration

Link Guard currently provides no GDPR or Audit integration. It does not define a GDPR data type or provide extension-specific export, anonymization, or deletion actions.

Translations

To help translate this extension, visit the Weblate project.

Links

License

This extension is released under the MIT License.


All versions of link-guard with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ffans/link-guard contains the following files

Loading the files please wait ...