Viewing 2 replies - 1 through 2 (of 2 total)
  • I wish to know the same.

    I’ve done it manual:

    # verify presence of mod rewrite
    <IfModule mod_rewrite.c>
    RewriteEngine on
    # Disable nginx
    Allow from all
    # allow all requests from your domain
    RewriteCond %{HTTP_REFERER} !^https://your\.site\.ru/ [NC]
    # search engine access
    # include or remove search engines feed readers and other sites
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !yandex\. [NC]
    # everybody else receives a forbidden 
    RewriteRule \.(gif|png|jpeg|jpg|svg)$ - [F]
    </IfModule>

    You have to change your.site.ru and delete lines with nginx (if don’t need them)

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.