Recent content by Kooser6

  1. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    All you do is check to see if `REMOTE_ADDR` is in the trusted proxy list. It's pointless to validate `REMOTR_ADDR`.
  2. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Are you blind look at the code again it checks to see if the IP Is in the list of trusted proxies before using that code. Like I said you only run that code for trusted proxies. There is nothing wrong with the code you just have to use it the right way. public function getClientIps() { $ip...
  3. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Dude we are just gonna keep going back and forth. If it's better to do it that way how come Zend, CakePHP, Laravel, and Symfony don't do this. You can think that validation is going to work but i guarantee your validation is not gonna work, and yes you can SPOOF the HTTP variable.
  4. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    You fail to listen to people who actually know what they are doing. But you keep doing your thing, beside we are off topic.
  5. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    I am telling you what i can do if you check use the `HTTP_` vars (spoofing). They are unsafe. The best and only way to check to see if `REMOTE_ADDR` is a trusted proxy, if it is then you get 'X_FORWARDED_ALL' header and use that. If it's not then you use `REMOTE_ADDR`. That's the bottom line...
  6. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Please read https://paragonie.com/blog/2015/04/fast-track-safe-and-secure-php-sessions. `REMOTE_ADDR` is good for session locking. It's an old post so i emailed them and they said its good.
  7. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Look at this: https://laravel.com/docs/5.8/requests#configuring-trusted-proxies
  8. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    You You have to add these proxies manually.
  9. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    So using an `HTTP_` var is better. The var that can be spoofed. Read https://blog.ircmaxell.com/2012/11/anatomy-of-attack-how-i-hacked.html. 1570130764 `REMOTE_ADDR` is the most reliable way to get the users IP address, if it's a TRUSTED proxy then you check the proxy header. Notice all the...
  10. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Only on trusted proxies lol.
  11. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    This is extra validation that is not needed, if you first check the `HTTP_` vars i can spoof any IP. ANY is the key word. Even a valid IP that is not mine. The reason `REMOTE_ADDR` is the best option is it can not be spoofed. Apache populates `REMOTE_ADDR` from a TCP socket that it uses to...
  12. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    What does my code look like? 1569969002 I think i found your way. https://devbest.com/threads/php-pdo-vpn-proxy-restriction.81429/ And you know you only run this against TRUSTED proxies. Key word. Why? any HTTP headers come from the client and can be spoofed. Look at...
  13. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    My fault different person, but like what?
  14. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    Not the proper way lol. I want you to show me the proper way lol. That's funny. Well i wrote that code in 2 hours. Maybe after updating it will be better lol. You might be the one late. Does not look like what? From the looks at it you do not know what the slash is. It does not escape lol...
  15. Kooser6

    Show DevBest [PHP 7.3^] Kooser Directory.

    I mentioned namespaces because it's the main reason why i . Also laravel is not very good in standalone use. My components are. Also i can build a framework given time that's faster than laravel. I have a lot more experience than you think :).
Top