• 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

.htaccess for viewer page instead of direct link

I was going to make a thread for this but s-f-r-j beat me to it lol.

I've been googling around and learned that if you redirect the image this way, people can't hotlink direct images? I'm not too sure though the explanations I found were quite vague and I never really found a straight answer to this. Anyways if anyone has a solution or know how to do this please share, I think many members want to know this as well. ๐Ÿ™‚
 
Well unlike Rodolfo said, it is not possible with mod_rewrite and htaccess, because users of your website could not hotlink your images anymore (except if this is what you want).

The only way would be to make a php script, redirect images to this script and the script will either show the image, or redirect to the viewer depending on your current URL.

It is totally possible, normally I would do it, but releasing this code, will release a part of a code I intend to sell...
 
I think that can be made with a bunch of conditions and overrides in htaccess, It could take to me a whole day to figure out the rules and stuff.

That doesn't means that I'm doing it... C'mon, search the web for mod rewrite conditionals and try to make it ๐Ÿ˜›
 
Back
Top