Urgent Please

okkhalid , April 14 2022, 18:36
O
okkhalid 4
April 14 2022, 18:36 #288
Hello,
when I apply the protection method on the folder, all logged in users including superadmin, can not view the videos.
we want to protect our videos from direct access, and we want only people with login to view the video.
I tried with registred level access,
Superuser level access,
and all we see is black box.
please help.
marco 329
April 14 2022, 21:36 #289
Hi okkhalid
I've checked your site and can confirm that it is not woring - but the message that appears when opening the video URL direclty is different then that one that comes from agileVideos.
agileVideos will show an empty white page OR a message saying access denied - in Your case another message is shown which means the blocking comes form somewhere elese / colides with the agileVideos Settings.
Can you please think about it - have you any other configuration (customization on a htaccess file) or setting that blocks the access to this folder?
*LINK REMOVED* >> if the block would come from agileVideos the message would be different...
You can do the following test:
check if there is any ..htaccess file in your joomla root dir - if it is so check its content about blocked folders and REMOVE it from there.
another simple test would be to create a new folder in the root dir of your joomla installation - paste the video there and try then to show this vid in agileVideos. If this works there must be some other htaccess or server setting that inteference with the agileVideos Settings.
Also please make sure to install the latest version - you can download it from your downloads area here at nx-designs - we had a new j4 related release yesterday
kind regards
Marco
---------

Rate us on JED: https://extensions.joomla.org/profile/profile/details/379934

---------
O
okkhalid 4
April 14 2022, 22:43 #290
hi Marco,
I have akebak admin tools, that I created .htaccess file with it, I can email me you that.
Is that possible to remove my site link from your reply above, please as it has the video information there.
O
okkhalid 4
April 14 2022, 23:21 #291
I have put back the .htaccess that comes with joomla, and still not working.
I also disabled the Akebabackup joomla Admin tools and still not working.
I sent you email with the .htaccess contnet so check on your email, I really need your help to have this working.
thank you
marco 329
April 15 2022, 06:16 #292
so what happens if you remove the .htaccess file or its content completly from your root directory?
i think its working then (when you wait a few moments and do a forced refresh)
I've checked your htaccess - its the default akeeba one - indeed - but i think i might found the issue in combination. There is this readmedia_jx.php file located in the module itself that handels the request this one needs to be accessible for the feature to work. I need to check that on another machine / figure out what to change in the htaccess for that.
As far as i can see now it could be that its not the mp4 file that got blocked it could be the script that handles the request to the file but i have to check that in detail. I'm on it.
***** EDIT:
with your htaccess you have sent me i was able to simulate the issue and it is for sure the rewrite rules in the root htaccess that creates this problem. Based on that i've created a rewrite rule for you and others. The following rule works in general but MUST BE PLACED AT THE EXACT LOCATION inside the htacess where the EXCEPTIONS got defined - otherwise its not working.
## Explicitly allow access to nx-designs readmedia php files
RewriteRule ^(plugins/system/nxdesignsframework/scripts|modules/(mod_agilevideos|mod_agiledownloads))/readmedia(_j3|_j4|).php - [L]
Please be aware that the copy / paste in this forum not really works well on some machines - make sure you did not copied additional HTML tags and the rule is written on two lines (first the comment).
In your htaccess you have to paste the rule around row 447 directly below this entry:
RewriteRule ^\.well\-known/ - [L]
Bildschirmfoto_2022-04-15_um_09.19.32.png
With this added the problem was solved on my testinstallation.
Kind regards
Marco
---------

Rate us on JED: https://extensions.joomla.org/profile/profile/details/379934

---------
O
okkhalid 4
April 15 2022, 14:25 #293
Hi marco,[div]​
i added the line to the .htaccess, still not working
would you mind to to check please your email.
I have extension called: profile that you can edit files too, also you can check the Akebab Admintools, as you can paste rules there and generate .htaccess.
Thank you for all your help
[/div]