• Hey Guest, don't forget to VOTE on each RFC topic. Your voting determine Chevereto development! No votes, no development.
  • Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Blocking Certain Hotlinking Website

tryimg

Chevereto Member
Hi,
I'm facing a huge issue with websites those are mass uploading images on my website and then putting it on their forums. I would like to block such websites from hotlinking the images. Currently I'm using the .htaccess to do so, but its very confusing in .htaccess.
You should add an option in the admin settings to list down all the blocked websites (and may be at the backend, this option updates the .htaccess file) making it easy for us to manage?
Thanks
 
This will be hard to do in chevereto with esternal storage. Its best to run a reverse proxy on nginx and prevent it there.
 
This will be hard to do in chevereto with esternal storage. Its best to run a reverse proxy on nginx and prevent it there.
I'm using Avrixe hosting account and they are on apache. How can I do that?
I tried using the following in .htaccess

Code:
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?abc\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?cool\.cn/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?hot\.org/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?earth\.es/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://tryimg.com/images/404.gif [L]

But I'm not sure if it is actually working or not. I tried refreshing those links (blog posts or forums) where the images are hotlinked, they are still showing up instead of my 404 image.
 
There are hotlink testers and generators everywhere. I suggest you to check that.

By the way, the hotlink protection must be placed before the Chevereto rewrite because it contains a L flag (last rule).
 
There are hotlink testers and generators everywhere. I suggest you to check that.

By the way, the hotlink protection must be placed before the Chevereto rewrite because it contains a L flag (last rule).
Can I send you a private message to show you the current HTACCESS so you can suggest me what to do?
 
Back
Top