Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
[PHP 7.3^] Kooser Directory.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BIOS" data-source="post: 453478" data-attributes="member: 15674"><p>That's why you validate the input is an actual IP, and it has come from the proxy before assigning it as the primary user's IP.</p><p></p><p>How? Validate $_SERVER['REMOTE_ADDR'] is your trusted proxy's IP (<a href="https://www.cloudflare.com/ips/" target="_blank">Cloudflare</a>, or lookup the IP ranges of your proxy), then validate the connecting IP header (i.e. $_SERVER["HTTP_CF_CONNECTING_IP"]) is an IP with FILTER_VALIDATE_IP.</p><p></p><p><a href="https://devbest.com/threads/official-braincms-1-4-0.81086/page-6#post-398006" target="_blank">This</a> is pretty basic stuff.</p><p></p><p>Haven't looked fully through this but quality seems decent, made something similar to this a while ago for rate-limiting.</p></blockquote><p></p>
[QUOTE="BIOS, post: 453478, member: 15674"] That's why you validate the input is an actual IP, and it has come from the proxy before assigning it as the primary user's IP. How? Validate $_SERVER['REMOTE_ADDR'] is your trusted proxy's IP ([URL='https://www.cloudflare.com/ips/']Cloudflare[/URL], or lookup the IP ranges of your proxy), then validate the connecting IP header (i.e. $_SERVER["HTTP_CF_CONNECTING_IP"]) is an IP with FILTER_VALIDATE_IP. [URL='https://devbest.com/threads/official-braincms-1-4-0.81086/page-6#post-398006']This[/URL] is pretty basic stuff. Haven't looked fully through this but quality seems decent, made something similar to this a while ago for rate-limiting. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
[PHP 7.3^] Kooser Directory.
Top