Hot link protection ??

Started by debo1990, August 09, 2019, 09:01:41 PM

Previous topic - Next topic

debo1990

" Hotlink protection prevents other websites from directly linking to files (as specified below) on your website. Other sites will still be able to link to any file type that you don't specify below (ie. html files). An example of hotlinking would be using a <img> tag to display an image from your site from somewhere else on the net. "

- is this feature available in CWP?
- if not any possible way to implement in the server.


Thanks.

Igor S.

Hi, you can use .htaccess for that. Just copy the rules from CPanel or other server ;)



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

debo1990

Quote from: Igor S. on August 23, 2019, 08:08:25 AM
Hi, you can use .htaccess for that. Just copy the rules from CPanel or other server ;)
Any working example please?

pixelpadre

Quote from: Igor S. on August 23, 2019, 08:08:25 AM
Hi, you can use .htaccess for that. Just copy the rules from CPanel or other server ;)

You get a blue ribbon for useless answers Igor.

Igor S.

You too,  pixelpadre ;)
Any example must be checked at the website. There a lot of options.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

pixelpadre

Quote from: Igor S. on August 29, 2019, 11:51:25 AM
You too,  pixelpadre ;)
Any example must be checked at the website. There a lot of options.

You know....I did an advanced searched

Keyword=support
user=Igor S.

Result=30 posts where you told people to contact support. 

We sure are glad that you are here to help us.

x1705

all in all, in Igor behalf, maybe not so much in teh forums has there been his support anymore..
He (and Sandeep) have been TOP NOTCH when you do Contact them/get them, with a support ticket.

There may be otehr reasons why teh "admins" dont/have time to react in the forums, as it is.. i'd personally
rather have them working ON cwp than ansering "Forum Questions" like useless ones asking how to "hot link protect"..

really?  there is a search engine called.. umm, "Google">  smh.

https://www.htaccessredirect.net/

pretty easy to search for..

a 'useless' question, when all you needed to do was "google" it..

Cheers.
X


pixelpadre

Google isnt the answer.

This is CWP and what applies to centos distros doesnt necessarily apply to CWP.  If we did what normal centos LAMP users did then CWP would crash and be totally useless.  So when someone asks a question, keep in mind that what they are really asking is will this work with my CWP app.

Igor S.

Quote from: pixelpadre on September 05, 2019, 01:07:06 PM
Google isnt the answer.

This is CWP and what applies to centos distros doesnt necessarily apply to CWP.  If we did what normal centos LAMP users did then CWP would crash and be totally useless.  So when someone asks a question, keep in mind that what they are really asking is will this work with my CWP app.

You are mistaken, sorry.
CWP used Apache and nginx and you can use any options they have. Some cases cannot be fixed "by photo" we are not guessers ;)
"To Google" is the answer if the question "how to do the best right now with the one CWP button".

And course, I said use support if I think the case should be checked with the root access.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Anders

i have test this in apache .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://example.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.com.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.example.com/stophotlinking.jpg [R,NC]

and it dont work

i have test this in nginx /etc/nginx/conf.d/vhosts/www.example.com.conf
location ~ \.(jpe?g|png|gif)$ {
     valid_referers none blocked example.com *.example.com;
     if ($invalid_referer) {
        return   403;
    }
}

and it dont work
Can some one test this also so its just not me that it fails for

Martins-phpbb

My site crashed got no access just a blank screen on cwp7

Martins-phpbb

Quote from: Martins-phpbb on October 06, 2019, 08:38:10 PM
My site crashed got no access just a blank screen on cwp7

Oh it just come back dont know how or what.

Anders

#12
Now i have just test webserver settings just apache and then htaccess work for hotlink but when i run Nginx & Varnish & Apache  so do nothing work

The team would embed hotlink protection to cwp that had been great

Anders

must say this forum must have the best support ever....seems like a graveyard here

Painkiller88

I also tried to get this to work with nginx.

I added it into the config but it still doesn't block hotlinking.


How to get this to work on CWP using apache nginx and varnish?

thanks