Control Web Panel

WebPanel => Information => Topic started by: debo1990 on August 09, 2019, 09:01:41 PM

Title: Hot link protection ??
Post by: debo1990 on August 09, 2019, 09:01:41 PM
" 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.
Title: Re: Hot link protection ??
Post by: 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 ;)
Title: Re: Hot link protection ??
Post by: debo1990 on August 26, 2019, 11:59:17 AM
Hi, you can use .htaccess for that. Just copy the rules from CPanel or other server ;)
Any working example please?
Title: Re: Hot link protection ??
Post by: pixelpadre on August 26, 2019, 11:12:48 PM
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.
Title: Re: Hot link protection ??
Post by: 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.
Title: Re: Hot link protection ??
Post by: pixelpadre on August 29, 2019, 06:27:58 PM
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.
Title: Re: Hot link protection ??
Post by: x1705 on September 03, 2019, 11:18:06 AM
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/ (https://www.htaccessredirect.net/)

pretty easy to search for..

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

Cheers.
X

Title: Re: Hot link protection ??
Post by: 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.
Title: Re: Hot link protection ??
Post by: Igor S. on September 17, 2019, 08:29:41 AM
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.
Title: Re: Hot link protection ??
Post by: Anders on October 03, 2019, 09:08:41 AM
i have test this in apache .htaccess
Code: [Select]
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
Code: [Select]
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
Title: Re: Hot link protection ??
Post by: Martins-phpbb on October 06, 2019, 08:38:10 PM
My site crashed got no access just a blank screen on cwp7
Title: Re: Hot link protection ??
Post by: Martins-phpbb on October 06, 2019, 08:39:55 PM
My site crashed got no access just a blank screen on cwp7

Oh it just come back dont know how or what.
Title: Re: Hot link protection ??
Post by: Anders on October 07, 2019, 08:50:22 AM
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
Title: Re: Hot link protection ??
Post by: Anders on October 08, 2019, 09:18:55 AM
must say this forum must have the best support ever....seems like a graveyard here
Title: Re: Hot link protection ??
Post by: Painkiller88 on August 09, 2021, 10:56:54 AM
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