Download & Extend

Local image input filter

Locks down image references to the host/domain of your site only, to prevent CSRF attacks, and avoid HTTPS mixed content errors.

In short: This input filter restricts image tags in HTML content submitted by users to your site.

Purpose

  • Allow your users to use IMG HTML tags in posts
  • while protecting against XSS attack vectors
  • and using relative paths to allow the images to work on both http and https sites

Behavior

  • This input filter finds all IMGs in a text, checks whether their src attribute is relative and points to an image under the Drupal root.
  • Images satisfying that requirement are retained and left alone.
  • All other images are removed.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0 tar.gz (10.91 KB) | zip (12.49 KB) 2011-Sep-27 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (10.08 KB) | zip (11.92 KB) 2012-May-08 Notes

Project Information


Maintainers for Local image input filter

  • sun - 9 commits
    last: 2 weeks ago, first: 37 weeks ago

Issues for Local image input filter

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here