PHP code example of nowo-tech / outbound-url-guard-bundle

1. Go to this page and download the library: Download nowo-tech/outbound-url-guard-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nowo-tech / outbound-url-guard-bundle example snippets


use Nowo\OutboundUrlGuardBundle\Guard\OutboundUrlGuard;

$options = $guard->httpClientOptions($url);
$options['max_redirects'] = 0;
yaml
nowo_outbound_url_guard:
    allow_private: false
    allow_private_resolver: ~ # service id read on every RuntimeOutboundUrlGuard call
    resolve_dns: true
    dns_timeout: 2.0
    php_binary: ~ # auto-detect the PHP CLI for bounded DNS lookups