Support » Plugin: Contact Form 7 » Protect file attachments with htaccess

  • Hi
    Firstly thanks for a great plugin.
    I’m using Mail (2) to send a reply to the restraint that contains a file attachment that is in the uploads folder. Is there a way to protect access to this attachment with an htaccess file. I want the htaccess file to deny access to all apart from contact form 7. I could add a sub folder in the uploads folder if that helps.

    I’ve disabled directory browsing by adding this to my htaccess:

    # Disable Directory Browsing
    Options -Indexes
    # End Disable Directory Browsing

    This stops anyone browsing the uploads folder, but you could still get direct access to the attachment.

    Any help, yes please 😉

    https://wordpress.org/plugins/contact-form-7/

  • The topic ‘Protect file attachments with htaccess’ is closed to new replies.