• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Make more money with Ads

Lastopp

Chevereto Member
Hello, thought I would share this genius method to make more money on your image hosting website. TinyPic recently changed to this method, I belive they did it to make more money.

The method is really simple, you just need to update .htaccess.

What it does
Let's say a user upload a picture on your site and then he post the link(http://imagehost.com/4jf83kd.jpg) in a forum, so when users click on the link they will get redirected to the viewer.

You can see example here, http://i40.tinypic.com/1zfopcm.png

As you can see TinyPic redirect you to their "viewer" with lot's of ads.

How to do it
I will post how to do it later, my friend is not online to help me. But maybe Rodolfo or anyone know how to do it.

Remember to read this, http://chevereto.com/community/threads/how-to-use-adsense-in-your-image-hosting-website.3226/
 
Did you ever post how to do this???

Perhaps someone else could post how to do this ??
 
Last edited:
Unless you create a large index with direct URL to viewer URL (or at least id) You will need PHP to handle all the requests. If you use PHP you will need to deal with all the static requests using PHP which means that your server could collapse if you don't optimize it. Just imagine that every image embed will be served by PHP (or at least redirected by PHP) which is totally not recommendable. Best way to do this in my opinion is by using .htaccess or any server redirection (before PHP) where any image request is redirected to the corresponding viewer URL.

To know if something was linked vs embed you have to analyse the Accept header which looks like this when you embed an image using the <img> tag:
Code:
image/webp,*/*;q=0.8

That way you can know if the image was linked or embed. The link will have this Accept header:
Code:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

I think that the Accept header can be handled in .htaccess so that is the base of this system. So the deal is read the referrer + accept header. If someone want to code it and share it be my guess.

Cheers.
 
Best way to do this in my opinion is by using .htaccess or any server redirection (before PHP) where any image request is redirected to the corresponding viewer URL.

Yes I agree, that would be good... Now, just how to do it :-(
What files do you edit for the accept header?? I presume this will be a server side based file.
Any devs know how to do this correctly?
 
Back
Top