Title: Media Auto Hash Rename
Author: Sparanoid
Published: <strong>2019-03-30</strong>
Last modified: 2026-10-12

---

Szukaj wtyczek

![](https://ps.w.org/media-auto-hash-rename/assets/banner-772x250.png?rev=2581663)

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

![](https://ps.w.org/media-auto-hash-rename/assets/icon.svg?rev=2060169)

# Media Auto Hash Rename

 Autor: [Sparanoid](https://profiles.wordpress.org/sparanoid/)

[Pobierz](https://downloads.wordpress.org/plugin/media-auto-hash-rename.1.0.2.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/media-auto-hash-rename/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/media-auto-hash-rename/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/media-auto-hash-rename/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/media-auto-hash-rename/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/media-auto-hash-rename/)

## Opis

Media Auto Hash Rename will rename any file (specific files can be ignored by file
extension) during upload, with unique, low collision hashes. Hash characters and
length can be configured for even lower collision rate.

More information please visit my [site](https://sparanoid.com/work/media-auto-hash-rename/).

This plugin provides no configuration GUI to make it more easier to maintain with
the future WordPress updates.

Currently there’re 3 constants you can configure in your `wp-config.php`, I recommend
WP-CLI for maintaining these constants.

 * `MAHR_LENGTH`: length of the random hashes, (default to `8`), longer can help
   reduce collision. Hashes at the length of 8 can be collision-free at the scale
   of 50,000 images).
 * `MAHR_CHARS`: Characters used in hashes, default to `0123456789abcdefghijklmnopqrstuvwxyz_`,
   You can add more characters like uppercased alphabelts to dramatically reduce
   the collision without increasing the length of your filenames. But please note
   that this option can be dangerous if you’re not familer with general URI encoding.
   So if you don’t know what characters are allowed in a filename, just keep it 
   untouched and use the default option.
 * `MAHR_IGNORE`: File extensions to be ignored, default to `pdf, zip`, you can 
   define a comma delimited list of file extensions to bypass renaming process of
   this plugin. All files that has the file extension you defined in the list will
   be ignored. Please note that:
    - File extensions must be defined without the leading peroid, for example: `'
      pdf, 7z, bmp'` works, `'.pdf, .7z, .bmp'` does not.
    - With (`'pdf, zip'`) or without (`'pdf,zip'`) space both work.
    - If you define your own ignore list, default ignore list will be discarded.
      For example, if you define `'7z'`, then `'pdf, zip'` will be processed during
      upload. You need to reapply these extensions with your own: `'7z, pdf, zip'`.
    - If you don’t need to ignore any files by its extension. define an empty array`[]`(
      without quotes) to this option: `define( 'MAR_IGNORE', [] );` to force process
      PDF and ZIP files.

## Zrzuty ekranu

[⌊What filenames look like after renaming.⌉⌊What filenames look like after renaming
.⌉[

What filenames look like after renaming.

## Instalacja

WordPress (Also works on multisite enabled instance):

 1. Upload the extracted files to the `/wp-content/plugins/` directory, or just install
    this plugin from your WordPress backend.
 2. In 'Plugins’ page, choose 'Activate’

## Najczęściej zadawane pytania

### What if I deactivate this plugin?

This pluigin, doesn’t not write any extra data into your database. The files renamed
by this plugin will still work after you deactivate this plugin.

## Recenzje

![](https://secure.gravatar.com/avatar/411a32d10c0c8b507302901a1a8ec806cd7df727e0d7bdb9f87361a49ee9bb03?
s=60&d=retro&r=g)

### 󠀁[Works as expected!](https://wordpress.org/support/topic/works-as-expected-722/)󠁿

 [gtamborero](https://profiles.wordpress.org/gtamborero/) 2021-11-26

Very good job. It's a way to prevent external access to your files. Works perfectly!

 [ Przeczytaj 0 recenzji ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/)

## Kontrybutorzy i deweloperzy

„Media Auto Hash Rename” jest oprogramowaniem open source. Poniższe osoby miały 
wkład w rozwój wtyczki.

Zaangażowani

 *   [ Sparanoid ](https://profiles.wordpress.org/sparanoid/)

[Przetłumacz wtyczkę “Media Auto Hash Rename” na swój język.](https://translate.wordpress.org/projects/wp-plugins/media-auto-hash-rename)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/media-auto-hash-rename/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/media-auto-hash-rename/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/media-auto-hash-rename/)
przez [RSS](https://plugins.trac.wordpress.org/log/media-auto-hash-rename/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 1.0.2

 * Maintenance update.

#### 1.0.1

 * Compatibility check for 5.8, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 1.0.0

 * First release

## Meta

 *  Wersja **1.0.2**
 *  Ostatnia aktualizacja **1 miesiąc temu**
 *  Włączone instalacje **50+**
 *  Wersja WordPressa ** 4.0 lub nowszej **
 *  Testowano do **5.8.19**
 *  Język
 * [English (US)](https://wordpress.org/plugins/media-auto-hash-rename/)
 * Tagi
 * [admin](https://pl.wordpress.org/plugins/tags/admin/)[administration](https://pl.wordpress.org/plugins/tags/administration/)
   [file](https://pl.wordpress.org/plugins/tags/file/)[files](https://pl.wordpress.org/plugins/tags/files/)
   [media](https://pl.wordpress.org/plugins/tags/media/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/media-auto-hash-rename/advanced/)

## Oceny

 5 na 5 gwiazdek.

 *  [  1 recenzja 5-gwiazdkowa     ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/?filter=5)
 *  [  0 recenzji 4-gwiazdkowych     ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/?filter=4)
 *  [  0 recenzji 3-gwiazdkowych     ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/?filter=2)
 *  [  0 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/?filter=1)

[Twoja opinia](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/media-auto-hash-rename/reviews/)

## Zaangażowani

 *   [ Sparanoid ](https://profiles.wordpress.org/sparanoid/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/media-auto-hash-rename/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://sparanoid.com/donate/)