<?php
// Enhanced security headers
// Session for CSRF token
ini_set('session.cookie_samesite', 'Lax');
ini_set('session.cookie_httponly', '1');
ini_set('session.cookie_secure', '1');
session_start();

// Prevent caching - page contains session-specific tokens
// Aggressive no-cache headers removed to improve SEO performance. Caching is now enabled.
if (!isset($_SESSION['csrf_token'])) {
    $_SESSION['csrf_token'] = bin2hex(random_bytes(32));
}
header('Strict-Transport-Security: max-age=31536000; includeSubDomains');
header('Content-Security-Policy: default-src \'self\'; script-src \'self\' \'unsafe-inline\' https://cdnjs.cloudflare.com https://www.googletagmanager.com https://www.google-analytics.com https://www.clarity.ms https://www.google.com https://www.gstatic.com; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com; font-src \'self\' https://fonts.gstatic.com; img-src \'self\' data: https://www.google-analytics.com; connect-src \'self\' https://www.google-analytics.com https://analytics.google.com https://region1.google-analytics.com https://www.google.com; frame-src https://www.google.com;');

// SEO and performance optimizations
$page_title = "Data Services London | Web Scraping for London Businesses";
$page_description = "Specialist data services for London businesses. We provide accurate, GDPR-compliant data via web scraping for lead generation, market research & competitor analysis.";
$canonical_url = "https://ukdataservices.co.uk/data-services-london.php";
$keywords = "data services london, web scraping london, business data london, data extraction london, lead generation london, market research london, data for analytics london";
$author = "UK Data Services";
$og_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo.png";
$twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo.png";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo htmlspecialchars($page_title); ?></title>
    <meta name="description" content="<?php echo htmlspecialchars($page_description); ?>" />
    <meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>">
    <meta name="author" content="<?php echo htmlspecialchars($author); ?>">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">
    
    <!-- Open Graph / Social Media -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta property="og:image" content="<?php echo htmlspecialchars($og_image); ?>">
    
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta name="twitter:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="twitter:image" content="<?php echo htmlspecialchars($twitter_card_image); ?>">
    
    <link rel="stylesheet" href="/assets/css/main.min.css?v=1.1.4">

    <!-- Favicon and App Icons -->
    <link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg">
    <link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.svg">

    <!-- Google Analytics 4 (GA4) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-GK41JM8DK0"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-GK41JM8DK0');
    </script>
</head>
<body>

<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php'); ?>

<main>
    <section class="hero-subpage">
        <div class="container">
            <h1 class="hero-title">Data & Web Scraping Services in London</h1>
            <p class="hero-subtitle">Bespoke data extraction for London's leading finance, tech, and retail businesses. Gain a competitive edge with accurate, real-time market intelligence.</p>
            <a href="/contact?service=london" class="btn btn-primary">Get a London-Focused Quote</a>
        </div>
    </section>

    <section class="py-5">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <h2>Powering London's Businesses with Data</h2>
                    <p>In the fast-paced London market, timely and accurate data is not a luxury—it's a necessity. UK Data Services provides specialised <strong>web scraping services for London-based companies</strong> seeking to harness the power of web data. Whether you're in FinTech in Canary Wharf, a retail brand on Oxford Street, or a tech startup in Shoreditch, we deliver the structured data you need to thrive.</p>
                    <p>Our core focus is providing high-quality <strong>business data for London</strong> clients, covering everything from competitor analysis and price monitoring to lead generation and market research. We handle the complexities of data extraction, so you can focus on strategy and growth.</p>
                </div>
                <div class="col-lg-6">
                    <img src="/assets/images/london-skyline.jpg" class="img-fluid rounded shadow" alt="A view of the London skyline including the Shard and the Gherkin.">
                </div>
            </div>
        </div>
    </section>

    <section class="py-5 bg-light">
        <div class="container">
            <h2 class="text-center mb-4">Our London Data Solutions</h2>
            <div class="row">
                <div class="col-md-4">
                    <div class="card h-100">
                        <div class="card-body">
                            <h3 class="card-title">Competitor & Price Monitoring</h3>
                            <p class="card-text">Stay ahead of the competition in London's dynamic market. We track competitor pricing, product catalogues, and promotions in real-time.</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card h-100">
                        <div class="card-body">
                            <h3 class="card-title">Lead Generation Data</h3>
                            <p class="card-text">Build targeted prospect lists. We extract company information, contact details, and other key data points from online directories and professional networks.</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card h-100">
                        <div class="card-body">
                            <h3 class="card-title">Market & Analytics Data</h3>
                            <p class="card-text">Fuel your analytics projects with robust data. We provide structured data sets for market research, trend analysis, and business intelligence, tailored to the London economy.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</main>

<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>

<script src="/assets/js/main.min.js?v=1.1.1"></script>

</body>
</html>