how can i hide source of files(external server)

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232761

-- HikaShop version -- : 2.5
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3
-- Browser(s) name and version -- : chroome
-- Error-message(debug-mod must be tuned on) -- : source of downloadable files isn't hidden in hikashop

how can i hide source of downloadable files in hikashop
i think there is a problem about source of downloadable files , when i use external server for uploading file and adding file to product, users can see the main source of files( the link isn't hidden or isn't coded)

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
8 years 8 months ago #232766

Hi,

The link provided is the download link in HikaShop. And when the customer uses it, HikaShop checks the payment and then redirect to the link of the download. At that point the customer can indeed get the download link and share it so that others can use that link and bypass that check.
That's why we recommend to not enter a download link and instead upload the file in HikaShop. That way, HikaShop will send the data of the file when the HikaShop download link is used, just after the check. That way, there will be no way to download the file unless you purchase the product.

The following user(s) said Thank You: h007

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232826

hi thank for your response
dear nicolas this is a big bug(issue) for file sellers
file sellers have many many files (ex: 1000+ gb) and they cant upload them to site server, they have to use an external host for uploading them
it is better check the extensions that have download systems
when you give a file seller extension you have to check your competitors
i ve tried several extension , hika is best but file seller has problem with that if they use external host
check the jdownloads ,admins can encrypt( Send Downloads using the PHP Script ) and protect the link of files in local server and external server,
(Send downloads over PHP Script?
jDownloads use normally a PHP Script for submit the file. The exact place from the file is then also not to seen. With very big files (a few hundred MB), it may be true that it comes to timeouts. When you deactivate this option, the pure download link is sended to the browser for download the file
Watch out!: If the option deactivated, you must not activate the .htaccess in the TAB: Security!)
i offered hikashop to my friends but they feedback me the same problem and have to use another extension to protecting of their files
best regards

Last edit: 8 years 8 months ago by h007.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
8 years 8 months ago #232829

Hi,

I'm not following you.
If you want the downloads to be secure (no one else can use the link besides the persons purchasing the product), the download has to happen through your website. So in that case, either the file needs to be stored on the website, or the file has to be downloaded each time from the external server where you store it.
There is no other way.
Having a key in the link of the file doesn't mean that the link cannot be given to someone else so it's not really "secure" in the sense that people not having paid for it, can download it.
And if you store the files on an external server and have your website fetch them each time, it's put a lot of strain on the connection between the servers.
So in short, the safest method to send paid downloads and keep bandwith usage to a reasonable level is to store the files on the website, which is what we chose to do.
And even in that case, it's always possible to create a virtual hard drive linking to your external server so that your website (and HikaShop) sees the files as being local while they are fetched dynamically by the server. So that shouldn't even be a problem to have the files on another server with that method.

The link you gave of jDownloads doesn't mention encryption. But even so, I don't see how it can guarantee the security of the downloads without having the website itself sends the data of the file. The customers could simply give the decryption key and the link to the data separately to share the files in that case.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232896

hi again
it is better you install jdownload and try that
you will see what happen to link of file when you active the Send Downloads using the PHP Script
you can try that from here
www.jdownloads.com/index.php/downloads/s...-jdownloads-3-2.html

they did that(jDownloads use normally a PHP Script for submit the file. The exact place from the file is then also not to seen) , and asking from them is good idea that how it works,

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 8 months ago #232898

Hi,

I'm afraid that we won't install and try jdownload.

You want to hide a file stored in an external server ?
So you can create a custom plugin to do so and use the trigger onBeforeDownloadFile.
There you will be able to use any kind of algorithm or whatsoever you want to do in order to try to hide the source.
www.hikashop.com/support/documentation/6...onBeforeDownloadFile

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: h007

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232942

hi Jerome
yes the domain of external host is hidden but when , after buying , hikashop gives the real link of file ,or when it sent an email to buyer, users can see the links of files
we will try that, but we want to upgrade our hika to business edition if you solve this issue at the new release, because we are not professional in extension developing
thank you in advance

Last edit: 8 years 8 months ago by h007.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 8 months ago #232945

Hi,

That's not possible to hide that external URL unless your server is downloading the file itself and sending it to the customer.
And that is clearly not something we can integrate into HikaShop regarding all the problems it could generate.
It is also written very explicitely in the jdownload website

jDownloads use normally a PHP Script for submit the file. The exact place from the file is then also not to seen. With very big files (a few hundred MB), it may be true that it comes to timeouts. When you deactivate this option, the pure download link is sended to the browser for download the file
Watch out!: If the option deactivated, you must not activate the .htaccess in the TAB: Security!

So I am sorry but that specific "issue" won't be solve in the next release or other future release.
For the rest, I don't think I need to re-phrase what Nicolas already explained.

Now it exists methods to have temporally URL on external servers ; I have already perform some integration (with nginx or lighttpd web servers). The system is working fine and you clearly don't care if the external URL is available because that URL is generated dynamically and is working only for a short period of time and one for single IP address.

As an HikaShop partner ; even if I am also an official HikaShop developer, the fact you're using HikaShop starter or HikaShop business won't change anything at the problem.
The trigger exists in any edition and a custom plugin would work the same.

Now I am clearly not the only HikaShop partner and if you can't implement such custom plugin, you can contact an external developer (a partner www.hikashop.com/home/our-partners.html ; using the "commercial jobs" forum section ; or any other website/contact).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: h007

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #233010

ok
we will contact with partners
if they fail, we have to migrate to another extension
i thank you very much for your guidance

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum