• Hi,

    I have an archived site in multisite installation and the images are accessible with direct link from search engine.

    How can I do to make these inaccesible?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • you mean you want to restrict direct access to domain.com/wp-content/uploads/2021/08/image.png

    or you can prevent hotlinking ?

    Thread Starter saraost

    (@saraost)

    @corusx yes!

    I already blocked hotlinking in Panel but it doesn’t function.

    Subsite is archived and I want all are private and inaccessible.

    create a .htaccess file in wp-content and place

    Deny from all

    it should work

    Thread Starter saraost

    (@saraost)

    @corusx
    it is a MULTISITE, are there other sites active in the same wp-content folder.

    i see try this it;ll redirect with 301 status any images of mu site url to 404

    RewriteCond %{HTTP_HOST} ^mu\.domain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mu\.domain\.com$
    RewriteRule ^wp\-content\/uploads\/\/?(.*)$ "https\:\/\/mu\.domain\.com\/404$1" [R=301,L]

    change the url with your multi site domain

    Thanks Corusx for your detailed help because it solved my problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How protect image’s direct link?’ is closed to new replies.