Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   php help needed - for image selling website .. (https://www.warriorforum.com/programming/499792-php-help-needed-image-selling-website.html)

amrta 7th December 2011 04:06 AM

php help needed - for image selling website ..
 
hello,

i am developing a image selling website. people can download image after payment complete. ( paypal am using as payment getway) after payment the image url will be sent to the mail .

these images located in ' sellimage ' folder on my server. the problem is if some one know about this folder (mywebsiteurl/selimage ) they can download all files !!!!!

how this type of website working , how can i do it securely ??? any idea


thanks in advance

rahman.warrior 7th December 2011 09:04 PM

Re: php help needed - for image selling website ..
 
You can block the folder through htaccess. Also on download do not deliver the image directly, deliver it through something like readfile() function.

Rankx 8th December 2011 06:33 PM

Re: php help needed - for image selling website ..
 
Like the above poster said, htaccess might be your best option.

RobKonrad 8th December 2011 06:38 PM

Re: php help needed - for image selling website ..
 
For a business model like this, I would recommend using a professional content protection solution.

For Wordpress, I can recommend DAP

WordPress Membership Plugin - Membership Script For WordPress Blogs And Regular Web Sites

- no affiliate link.

Cheers,
Rob

ussher 11th December 2011 05:14 PM

Re: php help needed - for image selling website ..
 
Im sure there are many pre-made systems that already do what you want to do.

My favorite CMS system is jamroom
Jamroom: The Musician Community Builder

It has the ability for you to sell photos. (or allow your users to upload and sell their photos)


All times are GMT -6. The time now is 03:56 PM.