New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to block file download/access requests if not referred from X (WP) site?
How to block file download/access requests if not referred from X (WP) site?
The configuration i want is simple:
WP Site (i have) > Member area > Download Link (on another server which we have cpanel and ftp access to the server) > WP users can access otherwise shouldn't be.
How to do?
What i meant is only wordpress users or the wordpress site referred visitors should get access to these direct download links others shouldnt.
Huh hope i explained clearly
WP: Wordpress
sorry for english lol
Comments
are you serving the files with php? or directly? are you familiar with .htaccess?
yes its perl based custom script (not directly)
and yes i am familiar with .htaccess
I believe what you are explaining is called 'hot linking' where another site will post your link or source data from your site causing higher bandwidth for your site. Depending on what type of hosting you are using, such as one with cPanel, there is usually provided a way to disabled hot linking from the panel. In other cases, you should search more on 'hot linking' and find a solution that works best for your specific case.
Hope this helps.
Cheers!
should do it
i use webmin/virtualmin , do u know how to do it on webmin?
so it'd allow X site to refer (when referred -by clicking link from wp site-) those direct download links and allow access/download otherwise dont allow (if tried direct access to those links) ?
it will be: https://(www.)example.com/ , right?
and
should be like
/home/mysitefolder/anotherfolder/download-folder$ , right?
and is it in download folder htaccess or public html htaccess?
Referer is unreliable. Generate token based links on request which expire after a set amount of time. You can another restriction like limitation of request per IP to prevent script from scrapping your url then again that takes some work to do and is your content that wanted to waste time on protection?
second one is go to solution it seems..
do you know how to allow only per wp logged ip address of users?
Important note: The links are not direct link location of files, they are generated urls via perl based script