XFileSharing Pro - How to block website content thieves, proxy services

Powerfull XFileSharing version

Moderator: admin

Message
Author
Tn964
Posts: 12
Joined: May 30, 2012 12:45 pm
Contact:

How to block website content thieves, proxy services

#1 Postby Tn964 » Jan 29, 2013 1:33 am

How to block website content thieves, proxy services, and exploited servers, and bandwidth any one know how please help, my server running very high Bandwidth right now . Thank you for all

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#2 Postby PowerChaos » Jan 31, 2013 12:26 am

you can use a firewall ?

you can also use htacces to block direct acces to images ( cpanel does that )

the problem with blocking is that it need to be specific and is mostly defined by 1 thing at the time

so if you want to block all proxy's , you could add a code in htacces to block acces if the refferal contains a proxy

here is a example code that i founded on the net

Code: Select all

RewriteEngine on

RewriteCond %{HTTP:VIA}                 !^$ [OR]
RewriteCond %{HTTP:FORWARDED}           !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$
RewriteRule ^(.*)$ - [F]


but i can not confirm if this code works
from the page i got it does it seems that it worked for 5 min and then not anymore

Greetings From PowerChaos

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#3 Postby ankurs » Jan 31, 2013 7:59 am


PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#4 Postby PowerChaos » Jan 31, 2013 11:19 am

blockscript is a php file , xfilesharing is a cgi file

to get blockscript to work you need to include the php file

the script itself does the same as the htacces only it use php methode to do that , atleast the version i have

it checks the refferal for reply , if it opens a website then it blocks ( as it is probaly a proxy ) , if it is not a website then it shows the site

but i wish you good luck with trying to intregrate that script then in a cgi script

Greetings from PowerChaos

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#5 Postby ankurs » Jan 31, 2013 12:11 pm

^ they have api available, which can be used


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests