Blocking proxy servers accessing my forum

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Registered User
Posts: 79
Joined: Sun Jul 06, 2008 1:27 pm

Blocking proxy servers accessing my forum

Post by TiTex »

I would like to know if this will block proxy servers accesing my board

i'll put this function in functions.php

Code: Select all

function proxy()
if (@fsockopen($_SERVER['REMOTE_ADDR'], 80))
    exit('Proxies are not allowed.');
edit index.php and call this function

Code: Select all

will this block proxies only or also users accessing the board from behind a router ?


User avatar
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher

Re: Blocking proxy servers accessing my forum

Post by AdamR »

This won't work and will block a good number of legitimate users. A good number of ISPs won't even respond to incoming requests on port 80.

- Adam
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton


Return to “[3.0.x] Support Forum”