Fix consultation form CSRF validation and improve site optimization
- Fix CSRF token validation for quote form by adding proper session handling and credentials to AJAX requests - Replace alert boxes with styled error/success messages and HTML response pages for better UX - Add visual indicators (*) to required form fields for better accessibility - Standardize navigation links to use absolute paths for consistency - Update JavaScript references to use minified version (main.min.js) for better performance - Archive large error log file and clean up sitemap by removing broken image references - Add comprehensive documentation to reCAPTCHA configuration about test vs production keys - Update sitemap lastmod dates to current timestamp 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
38
index.php
38
index.php
@@ -46,11 +46,11 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<meta name="twitter:image" content="<?php echo htmlspecialchars($twitter_card_image); ?>">
|
||||
|
||||
<!-- Favicon and App Icons -->
|
||||
<link rel="icon" type="image/svg+xml" href="assets/images/favicon.svg">
|
||||
<link rel="icon" type="image/svg+xml" sizes="16x16" href="assets/images/favicon-16x16.svg">
|
||||
<link rel="icon" type="image/svg+xml" sizes="32x32" href="assets/images/favicon-32x32.svg">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/apple-touch-icon.svg">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg">
|
||||
<link rel="icon" type="image/svg+xml" sizes="16x16" href="/assets/images/favicon-16x16.svg">
|
||||
<link rel="icon" type="image/svg+xml" sizes="32x32" href="/assets/images/favicon-32x32.svg">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.svg">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<meta name="theme-color" content="#764ba2">
|
||||
<meta name="msapplication-TileColor" content="#667eea">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
@@ -102,9 +102,9 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Resource Preloading for Performance -->
|
||||
<link rel="preload" href="assets/css/main.min.css" as="style">
|
||||
<link rel="preload" href="assets/images/ukds-main-logo.webp" as="image">
|
||||
<link rel="preload" href="assets/js/main.js" as="script">
|
||||
<link rel="preload" href="/assets/css/main.min.css" as="style">
|
||||
<link rel="preload" href="/assets/images/ukds-main-logo.webp" as="image">
|
||||
<link rel="preload" href="/assets/js/main.min.js" as="script">
|
||||
|
||||
<!-- Critical CSS for Above-the-Fold -->
|
||||
<style>
|
||||
@@ -128,7 +128,7 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
</style>
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="assets/css/main.min.css" media="print" onload="this.media='all'">
|
||||
<link rel="stylesheet" href="/assets/css/main.min.css" media="print" onload="this.media='all'">
|
||||
<noscript><link rel="stylesheet" href="assets/css/main.min.css"></noscript>
|
||||
|
||||
<!-- Enhanced Local SEO Schema -->
|
||||
@@ -435,11 +435,11 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<div class="nav-menu" id="nav-menu">
|
||||
<a href="#home" class="nav-link">Home</a>
|
||||
<a href="#services" class="nav-link">Capabilities</a>
|
||||
<a href="project-types" class="nav-link">Project Types</a>
|
||||
<a href="about" class="nav-link">About</a>
|
||||
<a href="/project-types" class="nav-link">Project Types</a>
|
||||
<a href="/about" class="nav-link">About</a>
|
||||
<a href="blog/" class="nav-link">Blog</a>
|
||||
<a href="#contact" class="nav-link">Contact</a>
|
||||
<a href="quote" class="nav-link cta-button">Request Consultation</a>
|
||||
<a href="/quote" class="nav-link cta-button">Request Consultation</a>
|
||||
</div>
|
||||
<div class="nav-toggle" id="nav-toggle">
|
||||
<span class="bar"></span>
|
||||
@@ -457,7 +457,7 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<h1 class="hero-title"><span class="highlight rotating-text" id="rotating-text">UK's Leading Web Scraping & Data Analytics Services</span></h1>
|
||||
<p class="hero-subtitle" id="hero-subtitle">Premier web scraping services UK specialists delivering data analytics London expertise. Professional data extraction, competitive intelligence, and business automation solutions.</p>
|
||||
<div class="hero-buttons">
|
||||
<a href="quote" class="btn btn-primary">Request Consultation</a>
|
||||
<a href="/quote" class="btn btn-primary">Request Consultation</a>
|
||||
<a href="#services" class="btn btn-secondary">Our Capabilities</a>
|
||||
</div>
|
||||
<div class="hero-stats">
|
||||
@@ -575,7 +575,7 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<div class="container">
|
||||
<div class="section-header">
|
||||
<h2>Enterprise Data Solutions Portfolio</h2>
|
||||
<p>Comprehensive data intelligence services designed for mission-critical business operations and strategic decision-making across British industry sectors. Our <a href="about">experienced team</a> delivers solutions for <a href="project-types">diverse project types</a> while maintaining full <a href="blog/articles/web-scraping-compliance-uk-guide.php">legal compliance</a> with UK data protection regulations.</p>
|
||||
<p>Comprehensive data intelligence services designed for mission-critical business operations and strategic decision-making across British industry sectors. Our <a href="/about">experienced team</a> delivers solutions for <a href="/project-types">diverse project types</a> while maintaining full <a href="blog/articles/web-scraping-compliance-uk-guide.php">legal compliance</a> with UK data protection regulations.</p>
|
||||
</div>
|
||||
<div class="services-grid">
|
||||
<div class="service-card animate-on-scroll" style="--animation-delay: 0.1s;">
|
||||
@@ -831,7 +831,7 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<img src="assets/images/icon-support.svg" alt="Expert support icon showing customer service representatives, technical assistance, and 24/7 help desk operations" loading="lazy">
|
||||
</div>
|
||||
<h3>Dedicated Expert Consultancy</h3>
|
||||
<p>Continuous support from chartered data professionals and certified engineers, providing strategic guidance and technical expertise. Meet our <a href="about">experienced team</a> of data specialists.</p>
|
||||
<p>Continuous support from chartered data professionals and certified engineers, providing strategic guidance and technical expertise. Meet our <a href="/about">experienced team</a> of data specialists.</p>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
@@ -957,10 +957,10 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
<ul>
|
||||
<li><a href="blog/">Data Intelligence Blog</a></li>
|
||||
<li><a href="case-studies/">Case Studies</a></li>
|
||||
<li><a href="about">About UK Data Services</a></li>
|
||||
<li><a href="project-types">Project Types</a></li>
|
||||
<li><a href="/about">About UK Data Services</a></li>
|
||||
<li><a href="/project-types">Project Types</a></li>
|
||||
<li><a href="faq">FAQ</a></li>
|
||||
<li><a href="quote">Request Consultation</a></li>
|
||||
<li><a href="/quote">Request Consultation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -986,7 +986,7 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
|
||||
</footer>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="assets/js/main.js"></script>
|
||||
<script src="/assets/js/main.min.js"></script>
|
||||
|
||||
<!-- Service Worker Registration -->
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user