Skip to content

What files and directories do you remove in production? #1664

Discussion options

You must be logged in to vote

If you are using Apache webserver you can use RedirectMatch directive in .htaccess file located in OM root directory. You are able to block accessing these files you want to delete also Magento routes. Bots are still looking for downloader, mage, RELEASE_NOTES.txt, install.php. Here is an example:

## Close security breaches for RSS
RedirectMatch /rss/catalog/notifystock https://www.mydomain.tld/404.php
RedirectMatch /rss/catalog/review https://www.mydomain.tld/404.php
RedirectMatch /rss/order/new https://www.mydomain.tld/404.php
RedirectMatch /index.phprss/catalog/notifystock/ https://www.mydomain.tld/404.php

## Disable Popular Terms and Advanced Search
RedirectMatch /catalogsearch/term/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ADDISON74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants