hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : need proxy help
Reply

Forum Jump

need proxy help

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Web Hosting Master
 
Join Date: Jul 2003
Posts: 602

need proxy help


hey,

i been looking for a way to disable hotlinking in phproxy. I think some sites are using my site as a hotlinking source. Is there anyway to block this?

__________________
24Proxy.com :: US Web Proxy :: NO POPUPS!
Click here to view a list of our other proxies.



Sponsored Links
  #2  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
I figured it's time I shared some logic with the proxy community.

I just wrote a short article regarding the prevention of hotlinking files via phproxy.

The article can be found here: http://www.webmastertalk.net/showthread.php?t=29

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #3  
Old
WHT Addict
 
Join Date: Nov 2005
Location: Canada
Posts: 130
Looks nice Amdac.
Can this be optimised to include other preffered referrer sites such as proxy.org etc?
Another point is that you are loosing alot of ad traffic that would have came through your site on proxified pages.
CPM on proxified pages can be worth the extra bandwidth that's used up.

comment more later...

Sponsored Links
  #4  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Quote:
Originally Posted by messa
Looks nice Amdac.
Can this be optimised to include other preffered referrer sites such as proxy.org etc?
Another point is that you are loosing alot of ad traffic that would have came through your site on proxified pages.
CPM on proxified pages can be worth the extra bandwidth that's used up.

comment more later...
In regards to the loss of ads, the only direct links to proxied pages would be posts on other sites. There's no way for a search engine to crawl anything beyond the index page. If you'd like to accomodate for ads on direct links, you could simply add the ads to the error page as well. As long as you provide a link back to the index page in your error message, there's a good chance you'll retain most of the traffic.

You've made a good point about allowing proxy.org, considering my site is listed there as well. I'll do some quick modifications and add it to the article in a few minutes. Thanks!

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #5  
Old
Web Hosting Master
 
Join Date: Jul 2003
Posts: 602
On my site 24proxy.com i did a refresh that will refresh the page instantly so i won't lose the traffic.

__________________
24Proxy.com :: US Web Proxy :: NO POPUPS!
Click here to view a list of our other proxies.

  #6  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Quote:
Originally Posted by Amdac
I'll do some quick modifications and add it to the article in a few minutes. Thanks!
I took the easy route, the orginal idea was much more complex. It should now allow proxy.org.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #7  
Old
Web Hosting Master
 
Join Date: Jul 2003
Posts: 602
Bug fix. The original script doesn't display the url include forum if the body tag of a site is empty

do you have a fix for that?

__________________
24Proxy.com :: US Web Proxy :: NO POPUPS!
Click here to view a list of our other proxies.

  #8  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
I'll let you know in a sec.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator



Last edited by Amdac; 05-14-2006 at 01:03 AM.
  #9  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Are you saying you want url_form.inc included on the intercepted pages? Just want to make sure I'm understanding it correctly.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #10  
Old
Web Hosting Master
 
Join Date: Jul 2003
Posts: 602
When you access pages like yahoo.com then view there news the url_form disappears.

aim: crspyjohn
msn: crspyjohn@hotmail.com
skype: crspyjohn

__________________
24Proxy.com :: US Web Proxy :: NO POPUPS!
Click here to view a list of our other proxies.

  #11  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Quote:
Originally Posted by crspyjohn
When you access pages like yahoo.com then view there news the url_form disappears.

aim: crspyjohn
msn: crspyjohn@hotmail.com
skype: crspyjohn
Ah, that's a completely different issue with phproxy.

The solution to that can be found here (check the post by murdock):
http://whitefyre.com/boards/genmessage.php?topic=102

That enables it on many sites that it normally doesn't show up on.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #12  
Old
Web Hosting Master
 
Join Date: Jul 2003
Posts: 602
thanks you

__________________
24Proxy.com :: US Web Proxy :: NO POPUPS!
Click here to view a list of our other proxies.

  #13  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Glad I could help.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


  #14  
Old
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: Rohnert Park, CA
Posts: 97
Nice resource, Amdac. I personally just added something similar to what I've got running. I've been having similar problems with hotlinking, so what I added was...

Code:
if ( $_GET["q"] && !(strpos( $_SERVER["HTTP_REFERER"], "http://www.proxyboys." ) === 0 || strpos( $_SERVER["HTTP_REFERER"], "http://proxyboys." ) === 0 || $_SERVER["HTTP_REFERER"] == "" )) {
	Header( "Referer: http://www.proxyboys.com/" );
	Header( "Location: http://www.proxyboys.com/index.php" );
}
Now, I'm not 100% sure that this will even work, and I tried to test it but then I realized that the HTTP_REFERER environment variable isn't even being set on my server, or at least not when I was trying to access it, but it should work in theory.

Difference is is that I added the part in where it allows the user to bypass the hotlink filter if they enter in the URL directly (or have it bookmarked). I also took in to account that some people access websites without using the "www" prefix.

Anywho, if someone uses this, let me know - just throw it at the top of your page before any includes etc. Curious to know if it works. I think my server is just a little borked (I'm terrible at managing my own VPS, so for all I know I left off some important Apache2 module when upgrading.)

__________________
Joshua Simmons
Virtual Developer
www.v-dev.com/

  #15  
Old
Superhero
 
Join Date: May 2003
Location: Ottawa
Posts: 2,478
Quote:
Originally Posted by Vdevelopers
|| $_SERVER["HTTP_REFERER"] == ""
I don't know why I didn't think of that, definately a nice touch.

__________________
Webmaster Forum webmastertalk.net Webmaster Community Forum
Website Tools domainfocus.com Webmaster Tools | IP Lookup | Domain Whois | PageRank Checker | HTTP Header Info | Link Analysis | Favicon Generator


Reply

Related posts from TheWhir.com
Title Type Date Posted
WHMCS Encourages Users to Upgrade as Part of Important Security Update Web Hosting News 2014-08-27 12:05:55
London Police Arrest Man who Ran Proxy Server Giving Access to Blocked Websites Web Hosting News 2014-08-07 11:33:57
CloudFlare Acquires VPN and Security Provider CryptoSeal Web Hosting News 2014-06-18 17:01:31
AQUA Networks Limited Listing 2014-10-22 09:46:43
Revenge Porn Site Owner Faces Multiple Felony Charges Web Hosting News 2013-12-11 13:57:30


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?