<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kulitha Jayasinghe on Medium]]></title>
        <description><![CDATA[Stories by Kulitha Jayasinghe on Medium]]></description>
        <link>https://medium.com/@kulitha2003?source=rss-01b77e4fe8bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UYKO2rU2zV87H9Cmgyp4Dg@2x.jpeg</url>
            <title>Stories by Kulitha Jayasinghe on Medium</title>
            <link>https://medium.com/@kulitha2003?source=rss-01b77e4fe8bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:05:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kulitha2003/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS Cost Anomaly Detection: Complete Guide to Monitor and Control Your Cloud Spending]]></title>
            <link>https://medium.com/@kulitha2003/aws-cost-anomaly-detection-complete-guide-to-monitor-and-control-your-cloud-spending-67776fd9776f?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/67776fd9776f</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Sun, 14 Dec 2025 16:39:39 GMT</pubDate>
            <atom:updated>2025-12-14T16:39:39.239Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYfrKwGreA763iGUXVzxaA.png" /></figure><h3>Introduction</h3><p>Cloud computing offers incredible flexibility, but unexpected AWS bills can be shocking. Whether you’re running a personal project or managing enterprise infrastructure, controlling costs is crucial.</p><p>AWS Cost Anomaly Detection is a free service that acts as your financial watchdog. It uses machine learning to monitor your spending and alert you when something unusual happens. This guide covers everything you need to set it up and keep your AWS bills under control.</p><h3>What is AWS Cost Anomaly Detection?</h3><p>AWS Cost Anomaly Detection uses machine learning algorithms to identify unusual spending patterns in your AWS account. Think of it as having a financial analyst constantly monitoring your cloud expenses, looking for anything out of the ordinary.</p><p>The service learns your typical spending behavior over time and creates a baseline of what’s “normal.” When spending deviates significantly from this baseline, it triggers an alert so you can investigate before a small issue becomes a massive bill.</p><h3>Why Do You Need It?</h3><p>Consider these common scenarios:</p><p><strong>The Forgotten Resource</strong>: You launch an EC2 instance for testing and forget to shut it down. Days later, unexpected charges appear.</p><p><strong>The Runaway Application</strong>: A bug causes excessive API calls or data storage, leading to cost spikes.</p><p><strong>The Security Breach</strong>: Unauthorized access leads to expensive cryptocurrency mining operations.</p><p><strong>The Auto-Scaling Surprise</strong>: Auto-scaling responds to unexpected traffic, spinning up more instances than anticipated.</p><p>Cost Anomaly Detection catches these issues early, often within 24 hours, giving you time to respond.</p><h3>How It Works</h3><h3>The Machine Learning Engine</h3><p>Cost Anomaly Detection uses machine learning models trained on your historical spending data:</p><p><strong>Data Collection</strong>: The service needs at least 10 days of historical data to start detecting anomalies effectively. Accuracy improves over time as it learns your patterns.</p><p><strong>Pattern Recognition</strong>: The algorithms analyze spending across services (EC2, S3, RDS), accounts, and tags, identifying your typical daily spending, weekly trends, seasonal variations, and cost relationships.</p><p><strong>Anomaly Detection</strong>: When current spending deviates significantly from expected patterns, the system flags it as an anomaly using sophisticated statistical methods.</p><p><strong>Impact Assessment</strong>: The service calculates the financial impact of each anomaly, helping you prioritize which issues need immediate attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYcFDSq91rRBq6WYXQh_Lg.png" /></figure><h3>Key Concepts</h3><p><strong>Cost Monitor</strong>: A configuration defining what you want to monitor. You can create multiple monitors for different aspects of your spending.</p><p><strong>Anomaly Threshold</strong>: The dollar amount above which you want to be notified. This filters out trivial cost variations.</p><p><strong>Evaluation Frequency</strong>: AWS Cost Anomaly Detection evaluates spending once per day.</p><p><strong>Root Cause Analysis</strong>: AWS automatically identifies which specific services, usage types, or accounts caused the unusual spending.</p><h3>Prerequisites</h3><h3>AWS Account Requirements</h3><ol><li><strong>Active AWS Account</strong> with billing access</li><li><strong>Billing Permissions</strong>: Your IAM user needs these permissions:<br>ce:GetAnomalies<br>ce:GetAnomalyMonitors<br>ce:GetAnomalySubscriptions<br>ce:CreateAnomalyMonitor<br>ce:CreateAnomalySubscription</li><li><strong>Cost Data</strong>: At least 10 days of cost data for the machine learning models</li></ol><h3>Free Tier Coverage</h3><p>AWS Cost Anomaly Detection is free.</p><ul><li>Creating monitors, detecting anomalies, and receiving alerts via SNS email <strong>within free tier limits</strong> (1,000 emails/month) incurs no charge.</li><li>Notifications beyond free tier limits may incur SNS costs.</li></ul><h3>Step-by-Step Setup GuideAlert ThresholdAlert</h3><h3>Step 1: Access AWS Cost Management Console</h3><ol><li>Sign in to AWS Management Console at <a href="https://console.aws.amazon.com/">https://console.aws.amazon.com</a></li><li>Search for “Cost Anomaly Detection” in the top search bar</li><li>Click on “Cost Anomaly Detection” under Cost Management / Cost Explorer</li><li>Enable Cost Explorer if prompted (it’s free and required)</li></ol><h3>Step 2: Create Your First Cost Monitor</h3><ol><li>Click “Create monitor”</li><li>Name your monitor (e.g., “AWS Account Monitor”)</li><li>Select monitor type: <strong>AWS Services</strong> (monitors all services — recommended for beginners)</li><li>Set alerting threshold based on your spending:<br>Spending $50–100/month → threshold $10–20<br>Spending $500–1000/month → threshold $50–100</li><li>Click “Next” and review</li><li>Click “Create monitor”</li></ol><p>Your monitor is now active and learning your spending patterns.</p><h3>Step 3: Set Up Alert Subscriptions</h3><ol><li>Click the “Alert subscriptions” tab</li><li>Click “Create subscription”</li><li>Name your subscription (e.g., “Cost Alerts”)</li><li>Choose notification method: <strong>Email</strong> (simplest option)</li><li>Enter your email address(es)</li><li>Select the monitor you created</li><li>Choose notification frequency:<br><strong>Individual alerts</strong>: Immediate notification (recommended)<br><strong>Daily summary</strong>: Once-daily digest<br><strong>Weekly summary</strong>: Weekly rollup</li><li>Click “Create subscription”</li></ol><p><strong>Important</strong>: Check your email and click the confirmation link. Check spam if you don’t see it within a few minutes.</p><h3>Step 4: Verify Your Setup</h3><ol><li>Return to the Cost Anomaly Detection dashboard</li><li>Verify your monitor shows “Active” status</li><li>Confirm your email subscription shows “Confirmed”</li></ol><p>Your system is now operational and will start detecting anomalies within 24 hours.</p><h3>Understanding Anomaly Alerts</h3><h3>What’s in an Alert</h3><p>Anomaly alert emails contain:</p><ul><li>Date/time the anomaly was detected</li><li>Total impact amount (how much more than expected)</li><li>Which AWS service caused it</li><li>Expected vs. actual spending</li><li>Direct link to Cost Explorer for detailed analysis</li></ul><h3>How to Investigate</h3><p>When you receive an alert:</p><ol><li><strong>Assess Impact</strong>: Check the dollar amount and affected services</li><li><strong>Open Cost Explorer</strong>: Click the link in the email</li><li><strong>Drill Down</strong>: Group by Service, then Usage Type to find the root cause</li><li><strong>Check Resources</strong>: Go to the service console and verify running resources</li><li><strong>Take Action</strong>: Stop unnecessary resources, fix bugs, or revoke unauthorized access</li><li><strong>Document</strong>: Record what happened and how you resolved it</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p839EOKg2LFyKqKWlgBEcQ.png" /></figure><h3>Common Scenarios and Solutions</h3><h3>Scenario 1: Forgotten EC2 Instance</h3><p><strong>Alert</strong>: $50 unexpected EC2 charge</p><p><strong>Investigation</strong>: Found m5.xlarge instance running for 5 days</p><p><strong>Resolution</strong>:</p><ul><li>Terminate the instance</li><li>Implement auto-shutdown for dev instances using Lambda</li><li>Add mandatory “AutoStop” tags</li></ul><h3>Scenario 2: S3 Storage Growth</h3><p><strong>Alert</strong>: S3 costs up 150% ($75 unexpected)</p><p><strong>Investigation</strong>: Logging bucket grew to 500GB without lifecycle policy</p><p><strong>Resolution</strong>:</p><ul><li>Create lifecycle policy (Glacier after 30 days, delete after 90 days)</li><li>Reduce application logging verbosity</li><li>Monitor bucket sizes weekly</li></ul><h3>Scenario 3: Lambda Invocation Spike</h3><p><strong>Alert</strong>: Lambda costs up 400% ($120 unexpected)</p><p><strong>Investigation</strong>: Function had 10 million invocations vs. normal 100,000</p><p><strong>Resolution</strong>:</p><ul><li>Implement API Gateway rate limiting</li><li>Add authentication to public endpoints</li><li>Configure Lambda reserved concurrency</li></ul><h3>Scenario 4: RDS Storage Auto-Scaling</h3><p><strong>Alert</strong>: RDS storage costs increased by $200</p><p><strong>Investigation</strong>: Database auto-scaled from 100GB to 500GB</p><p><strong>Resolution</strong>:</p><ul><li>Archive old data to S3</li><li>Implement data retention policy</li><li>Set storage auto-scaling limits</li></ul><h3>Best Practices</h3><ol><li><strong>Start Broad</strong>: Begin with one monitor covering your entire account, then create specific monitors as needed</li><li><strong>Set Realistic Thresholds</strong>: Balance sensitivity with practicality. Start conservative and adjust based on experience</li><li><strong>Review Alerts Promptly</strong>: Make it someone’s responsibility to investigate alerts within 24 hours</li><li><strong>Use Tags</strong>: Implement comprehensive tagging (Environment, Project, Owner, Cost Center) for better tracking</li><li><strong>Combine Tools</strong>: Use with AWS Budgets for hard limits and Cost Explorer for detailed analysis</li><li><strong>Regular Reviews</strong>: Adjust thresholds quarterly or after major infrastructure changes</li><li><strong>Educate Your Team</strong>: Ensure everyone understands cost monitoring and proper resource management</li><li><strong>Test Your Setup</strong>: Intentionally create a small controlled anomaly to verify alerts work</li></ol><h3>Troubleshooting</h3><p><strong>Not Receiving Alerts?</strong></p><ul><li>Confirm email subscription (check spam folder)</li><li>Lower threshold temporarily to test</li><li>Wait for 10+ days of historical data</li><li>Verify Cost Explorer is enabled</li></ul><p><strong>Too Many False Positives?</strong></p><ul><li>Increase alerting threshold</li><li>Create more specific monitors</li><li>Switch to daily/weekly summaries</li></ul><p><strong>Monitor Shows Inactive?</strong></p><ul><li>Check IAM permissions</li><li>Verify account is in good standing</li><li>Ensure Cost Explorer is enabled</li></ul><h3>Frequently Asked Questions</h3><p><strong>Q: Is this service free?</strong> A: Yes, completely free including monitors, detection, and alerts.</p><p><strong>Q: How long until it starts working?</strong> A: Needs 10 days minimum, but accuracy improves over 2–4 weeks.</p><p><strong>Q: Can I detect in real-time?</strong> A: Detection occurs within 24 hours. For real-time, use AWS Budgets.</p><p><strong>Q: What threshold should I set?</strong> A: Start with 2–5% of monthly spend. For $1,000/month, set $20–50.</p><p><strong>Q: How many monitors can I create?</strong> A: Up to 100 per account.</p><p><strong>Q: Can I use with multiple AWS accounts?</strong> A: Yes, with AWS Organizations you can monitor individual or all accounts.</p><p><strong>Q: Do I need Cost Explorer?</strong> A: Yes, it must be enabled (it’s free).</p><p><strong>Q: Can I exclude certain services?</strong> A: Not directly, but you can create focused monitors for specific services.</p><p><strong>Q: Can I get alerts via Slack?</strong> A: Yes, use Amazon SNS to integrate with Slack, PagerDuty, or webhooks.</p><h3>Conclusion</h3><p>AWS Cost Anomaly Detection is essential for managing cloud costs effectively. It provides:</p><ul><li><strong>Financial Protection</strong>: Early detection saves money</li><li><strong>Operational Insight</strong>: Identifies optimization opportunities</li><li><strong>Security Awareness</strong>: Detects unauthorized access</li><li><strong>Peace of Mind</strong>: Automatic monitoring lets you focus on building</li></ul><p>The service is completely free and takes only 30 minutes to set up. Combined with AWS Budgets, Cost Explorer, proper tagging, and team education, it forms a comprehensive cost management strategy.</p><p>Don’t wait for a surprise bill. Set up Cost Anomaly Detection today and take control of your AWS spending.</p><h3>Additional Resources</h3><p><strong>AWS Documentation</strong></p><ul><li>AWS Cost Anomaly Detection: <a href="https://docs.aws.amazon.com/cost-management/latest/userguide/manage-ad.html">https://docs.aws.amazon.com/cost-management/latest/userguide/manage-ad.html</a></li><li>AWS Cost Explorer: <a href="https://docs.aws.amazon.com/cost-management/latest/userguide/ce-what-is.html">https://docs.aws.amazon.com/cost-management/latest/userguide/ce-what-is.html</a></li></ul><p><strong>AWS Training</strong></p><ul><li>AWS Cost Management Workshop</li><li>AWS Well-Architected Framework — Cost Optimization Pillar</li></ul><p><strong>Community</strong></p><ul><li>AWS Cost Management Blog</li><li>AWS re:Post community forum</li><li>AWS YouTube Channel</li></ul><p><strong>Tools</strong></p><ul><li>AWS Pricing Calculator</li><li>AWS Simple Monthly Calculator</li></ul><p>Remember, cost management is an ongoing journey. Continue learning, stay informed, and regularly review your optimization strategies.</p><p>Happy cost monitoring, and may your AWS bills always be predictable and optimized!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67776fd9776f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Cloudflare Load Balancer for Reliable Performance and Geo-Routing]]></title>
            <link>https://medium.com/@kulitha2003/understanding-cloudflare-load-balancer-for-reliable-performance-and-geo-routing-4aa58f9e472f?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aa58f9e472f</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 09:50:24 GMT</pubDate>
            <atom:updated>2025-12-10T09:50:24.369Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2uetcNSNqFgPkclKwNNIg.png" /></figure><p>If your website or application serves users from multiple countries, you may notice that users far from your server experience slower performance and higher latency. A single server may also become overloaded during traffic spikes. Cloudflare Load Balancer solves these problems by routing each user to the nearest, fastest, and healthiest server using Cloudflare’s global network.</p><p>This guide will explain what Cloudflare Load Balancer is, how Geo-Routing works, how to set up origin pools, configure health checks, and verify your setup.</p><h3>What Is Cloudflare Load Balancer</h3><p>Cloudflare Load Balancer is a DNS-based global traffic distribution system. It does not act like a traditional reverse proxy running on your server. Instead, it makes routing decisions at the DNS level to send traffic to the best server based on health, location, and routing rules.</p><p>Cloudflare Load Balancer is not free. It requires at least the Cloudflare Pro plan or Business plan, with costs depending on the number of load balancers, origin pools, and health checks.</p><p>Cloudflare Load Balancer ensures high availability, reduced latency, and automatic failover.</p><h3>What Is Geo-Routing ?</h3><p>Geo-Routing, also called geographic steering, is the process where Cloudflare identifies a user’s location based on their IP address and routes them to the nearest or most appropriate server pool.</p><p>For example, users in Asia can be routed to Singapore or Mumbai servers, users in Europe to Frankfurt, and users in the United States to Virginia. Geo-Routing improves website speed, reduces latency, and enhances user experience globally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0W-O-vOdS9nYGlBMO2dZgw.png" /></figure><h3>How Cloudflare Load Balancer Works</h3><p>When a user requests your website, the following steps occur:</p><ol><li>The user queries your domain.</li><li>Cloudflare examines the user’s location, pool health, and geo-routing rules.</li><li>Cloudflare returns the IP address of the best server.</li><li>The user connects to the server through Cloudflare’s edge network.</li></ol><p>All of this happens in milliseconds without the user noticing.</p><h3>Step 1 Creating Origin Pools</h3><p>Origin pools are groups of servers that serve traffic for a specific region or purpose. Example pools:</p><p>Asia Pool</p><ul><li>Singapore Server</li><li>Mumbai Server</li></ul><p>Europe Pool</p><ul><li>Frankfurt Server</li></ul><p>United States Pool</p><ul><li>Virginia Server</li></ul><p>To create a pool:</p><ol><li>Go to the Cloudflare Dashboard.</li><li>Navigate to Traffic, then Load Balancing.</li><li>Click Create Load Balancer.</li><li>Click Create New Origin Pool.</li><li>Add origin servers by IP address or hostname.</li></ol><p>Tips:</p><ul><li>Add at least two servers per pool for redundancy.</li><li>Name pools clearly to avoid confusion.</li><li>Make sure all origins are reachable over HTTP or HTTPS.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlNIZWCgrAXmgBGz5NFZFA.png" /></figure><h3>Step 2 Configuring Health Checks</h3><p>Health checks ensure traffic is only sent to servers that are working correctly. Cloudflare regularly tests each origin using:</p><ul><li>HTTP or HTTPS requests</li><li>Expected status codes, typically 200 OK</li><li>Response time and timeout</li><li>Retry thresholds</li></ul><p>If a server is marked unhealthy, traffic automatically shifts to healthy servers.</p><p>Recommended settings for beginners:</p><ul><li>Interval: 20 seconds</li><li>Timeout: 5 seconds</li><li>Retries: 2</li><li>Healthy threshold: 2</li><li>Unhealthy threshold: 3</li></ul><h3>Step 3 Enabling Geo-Routing</h3><p>To configure Geo-Routing:</p><ol><li>Under the Steering Policy, select Geo-Steering.</li><li>Assign pools to regions. Example: <br>Asia → Asia Pool<br>Europe → Europe Pool<br>North America → US Pool</li><li>Set a fallback pool in case a region is down. Example: Asia Pool.</li></ol><p>This ensures that users always have access to a healthy server.</p><h3>Step 4 Failover and Redundancy</h3><p>Cloudflare automatically handles failover. Example scenarios:</p><ul><li>If Singapore server fails, traffic is routed to Mumbai.</li><li>If the entire Asia pool fails, traffic is routed to the EU pool.</li><li>If all EU servers fail, traffic is routed to the US pool.</li></ul><p>Failover ensures high availability without manual intervention.</p><h3>Step 5 Testing Your Load Balancer</h3><p>To verify Geo-Routing, test from multiple regions:</p><ol><li>Use a VPN to simulate users in Asia, Europe, and the United States.</li><li>Run a DNS query using dig or nslookup:<br> <em>dig yourdomain.com</em></li><li>Confirm the returned IP matches the expected server for each region.</li></ol><h3>Architecture Overview</h3><p>A simple architecture of Cloudflare Load Balancer with Geo-Routing:</p><p>Cloudflare Edge receives user requests and routes them to the appropriate origin pool:</p><ul><li>Asia Users → Asia Pool (Singapore / Mumbai)</li><li>Europe Users → Europe Pool (Frankfurt)</li><li>US Users → US Pool (Virginia)</li></ul><p>This configuration ensures fast, reliable access for global users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOrkd-cSAnvbW9hJTV4IrA.png" /></figure><h3>Best Practices</h3><ul><li>Keep health checks enabled.</li><li>Add at least two servers per pool.</li><li>Create separate pools for major regions.</li><li>Avoid routing globally to a single server.</li><li>Use low DNS TTL values, typically 30 to 60 seconds, for faster failover.</li></ul><h3>When to Use Cloudflare Load Balancer</h3><p>Cloudflare Load Balancer is suitable for websites or applications that:</p><ul><li>Serve global users</li><li>Have multiple servers around the world</li><li>Require high availability and low latency</li><li>Need automatic failover</li><li>Run e-commerce, SaaS, or API applications</li></ul><h3>Conclusion</h3><p>Cloudflare Load Balancer with Geo-Routing is an effective solution to improve global website performance, reduce latency, and ensure high availability. Even beginners can set up a load balancer in a short time. Paid plans provide advanced routing, health checks, and failover, making it suitable for production-grade applications.</p><p>Properly configured Geo-Routing ensures that users are always connected to the nearest healthy server, providing a fast and reliable experience worldwide.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aa58f9e472f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Guide to Protecting Your VPS from DDoS Attacks]]></title>
            <link>https://medium.com/@kulitha2003/ultimate-guide-to-protecting-your-vps-from-ddos-attacks-4abea233b1e6?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4abea233b1e6</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 08:43:04 GMT</pubDate>
            <atom:updated>2025-12-09T08:43:04.995Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHpGWo2fDM0EHQiCgT_4GA.png" /></figure><h4>Understand, Detect, and Defend Against DDoS Attacks on Your VPS</h4><p>A Virtual Private Server (VPS) gives you performance, flexibility, and control. However, it also makes you responsible for your own security. One of the biggest risks faced by VPS owners today is the DDoS attack. This is a method attackers use to overload a server until it becomes slow, unstable, or completely unavailable.</p><p>This guide explains in detail how DDoS attacks work, why VPS servers are targeted, how to detect early signs of an attack, and the most effective steps to secure your server.</p><h3>What Is a DDoS Attack?</h3><p>A Distributed Denial of Service (DDoS) attack is a malicious attempt to disrupt a server or website by sending a massive amount of fake traffic from multiple sources at the same time.</p><p>Attackers use something called a botnet. A botnet is a network of infected computers, IoT devices, and compromised servers. All these devices are controlled remotely and used to send traffic to your VPS.</p><h4>A Simple Example</h4><p>Imagine a shop that normally gets 50 customers per hour. Suddenly, 5,000 fake customers rush inside. Real customers cannot enter. Eventually the shop shuts down. This is exactly how your VPS behaves during a DDoS attack.</p><h3>Why Attackers Target VPS Servers</h3><p>VPS servers commonly host e-commerce websites, web applications, APIs, admin dashboards, blogs, or content management systems. Because VPS provides greater control than shared hosting, many server owners forget that security is not automatically configured.</p><p>Hackers target VPS servers for several reasons:</p><ul><li>Many servers are left with default settings</li><li>Firewalls are not configured properly</li><li>Unnecessary ports are left open</li><li>Software is outdated</li><li>Small businesses cannot detect attacks quickly</li></ul><p>These conditions make VPS servers appealing and easy targets.</p><h3>Types of DDoS Attacks</h3><p>Understanding the types of attacks helps you build a stronger defense strategy.</p><h4>1. Volumetric Attacks (Network Flooding)</h4><p>These attacks overload your network bandwidth with extremely large amounts of traffic.<br>Examples include UDP Flood, NTP Amplification, and DNS Amplification.</p><h4>2. Protocol Attacks (Server Resource Exhaustion)</h4><p>These attacks exploit weaknesses in network protocols and use up CPU, RAM, and connection tables.<br> Examples include SYN Flood, Ping of Death, and Smurf Attack.</p><h4>3. Application Layer Attacks (Targeting Websites and Apps)</h4><p>These attacks generate huge numbers of requests that look like normal traffic but are actually harmful.<br> Examples include HTTP GET and POST Floods, Slowloris, and WordPress XML-RPC abuse.</p><h3>Early Warning Signs of a DDoS Attack</h3><p>Look out for the following indicators:</p><ul><li>Unusual bandwidth spikes</li><li>High CPU or RAM usage without real traffic growth</li><li>Slow website performance</li><li>Random or repeated downtime</li><li>Inability to log in to SSH, cPanel, or Plesk</li><li>Logs showing repeated requests from many unknown IPs</li><li>API endpoints receiving abnormal or continuous traffic</li></ul><p>Detecting these signs early helps you take action quickly.</p><h3>Benefits of DDoS Protection</h3><p>Strong DDoS protection provides several important advantages:</p><ul><li>Prevents downtime</li><li>Maintains fast website performance</li><li>Protects your business reputation</li><li>Ensures customers can access your site during attacks</li><li>Blocks harmful traffic before it reaches your server</li><li>Reduces load on your VPS</li><li>Minimizes manual intervention</li></ul><h3>How to Protect Your VPS from DDoS Attacks</h3><h4>1. Keep All Software Updated</h4><p>Regularly update your operating system, CMS, plugins, themes, and web server software such as Nginx or Apache. Updates fix security vulnerabilities, which attackers often target.</p><h4>2. Install and Configure a Firewall</h4><p>Use tools such as UFW, CSF, Firewalld, or iptables. These help you block suspicious connections and filter incoming traffic.</p><h4>3. Close Unused Ports</h4><p>Only allow essential ports such as 22 for SSH, 80 for HTTP, and 443 for HTTPS. Disable or block unnecessary ports to reduce your attack surface.</p><h4>4. Use a CDN with a Web Application Firewall (WAF)</h4><p>CDN services such as Cloudflare, QUIC.cloud, Fastly, or Akamai filter malicious traffic before it reaches your VPS. They also improve website speed and caching.</p><h4>5. Enable Rate Limiting</h4><p>Rate limiting controls how many requests each IP address can send. This prevents bots from repeatedly calling your endpoints.</p><h4>6. Use IDPS (Intrusion Detection and Prevention Systems)</h4><p>Tools like Fail2Ban, OSSEC, and Snort analyze logs and automatically block malicious behavior in real time.</p><h4>7. Perform Regular Automated Backups</h4><p>Store your backups on remote servers or cloud storage. This helps you recover your data quickly in case of a successful attack.</p><h4>8. Monitor Logs and Server Metrics</h4><p>Check access logs, error logs, bandwidth usage, and CPU activity. Set alerts for unusual behavior.</p><h4>9. Create a DDoS Response Plan</h4><p>Your plan should include recovery steps, who to contact, where backups are stored, and how to isolate the server. It must also include steps to activate emergency protection such as Cloudflare Under Attack Mode.</p><h3>Final Thoughts</h3><p>DDoS attacks are becoming more frequent and more advanced. However, with strong preventive measures, regular monitoring, and a clear response plan, you can significantly reduce the risk and keep your VPS safe and accessible.</p><p>Being proactive is the most effective way to protect your website and maintain a stable online presence in 2025 and beyond.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4abea233b1e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Guide to Deploying a React.js App on Shared Hosting]]></title>
            <link>https://medium.com/@kulitha2003/complete-guide-to-deploying-a-react-js-app-on-shared-hosting-9af77b402b89?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af77b402b89</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 08:31:14 GMT</pubDate>
            <atom:updated>2025-12-09T08:31:14.768Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5I3Sgg_eigpSCe0pPZuCA.png" /></figure><p>Deploying a React.js application on shared hosting might feel intimidating, especially if you’re used to local development. Unlike a regular static website, React apps use client-side routing, which requires proper configuration when deploying on shared hosting. In this guide, we’ll cover <strong>everything from building your app to configuring your hosting environment</strong> to ensure smooth deployment.</p><h3>Step 1: Build Your React App for Production</h3><p>Before you can deploy your React app, you need to create a <strong>production-ready build</strong>. This process compiles your JavaScript code, optimizes assets, and generates static files that can be served efficiently by a web server.</p><h4>Navigate to Your Project Directory</h4><p>Open your terminal and go to the folder containing your React app:</p><pre>cd your-react-app</pre><h4>Create the Production Build</h4><p>Run the following command:</p><pre>npm run build</pre><h4><strong>What happens here:</strong></h4><ul><li>React compiles all your components into static files.</li><li>JavaScript and CSS files are minified for performance.</li><li>A new build folder is created containing everything needed to deploy your app.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JL0OOaE_iOudYwjeOaESQ.png" /><figcaption>Terminal showing the build process and creation of the build folder</figcaption></figure><blockquote><strong><em>Tip:</em></strong><em> If you see warnings during the build process, address them first, as they may cause issues in production.</em></blockquote><h3>Step 2: Compress the Build Folder</h3><p>Once the build is complete, you need to compress it before uploading it to your hosting server.</p><ol><li>Locate the build folder in your project directory.</li><li>Right-click the folder and select <strong>Compress</strong> or <strong>Send to → Zip</strong> (depending on your OS).</li><li>A new file named build.zip will be created.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*catZK4httXzrkKl9Z4cRnA.png" /><figcaption>File explorer showing the build folder being compressed into a .zip file</figcaption></figure><blockquote><em>Compressing the folder ensures faster uploads and reduces the chance of missing files during transfer.</em></blockquote><h3>Step 3: Upload the Build Folder to Your Hosting Server</h3><p>Most shared hosting providers offer different control panels such as cPanel, Plesk, or DirectAdmin. In this guide, we’ll use <strong>cPanel</strong> as the example since it’s the most commonly used. Here’s how to upload your React app:</p><ol><li><strong>Log in to cPanel:</strong> Open your browser and log in to your hosting account.</li><li><strong>Access File Manager:</strong> Navigate to the File Manager and locate the public_html directory (or the folder for your subdomain if deploying there).</li><li><strong>Upload </strong><strong>build.zip:</strong> Click the Upload button, select the build.zip file, and wait for it to upload.</li><li><strong>Extract the Archive:</strong> Once uploaded, right-click build.zip and select <strong>Extract</strong>. Your React app files will now appear directly inside the public_html directory.</li></ol><blockquote><strong><em>Tip:</em></strong><em> Make sure the files are extracted directly under </em><em>public_html (or the target folder), not nested in an extra folder, otherwise your app won’t load correctly.</em></blockquote><h3>Step 4: Configure .htaccess for React Router</h3><p>React apps often use <strong>client-side routing</strong>. Without proper server configuration, navigating to routes other than the homepage can result in 404 errors.</p><h4>Create or Edit .htaccess</h4><ol><li>Check if a .htaccess file exists in your public_html directory.</li><li>If it doesn’t, create a new file named .htaccess.</li></ol><h4>Add Rewrite Rules</h4><p>Insert the following code into the file:</p><pre>Options -MultiViews<br>RewriteEngine On<br>RewriteCond %{REQUEST_FILENAME} !-f<br>RewriteCond %{REQUEST_FILENAME} !-d<br>RewriteRule ^ index.html [QSA,L]</pre><p><strong>What this does:</strong></p><ul><li>Redirects all requests to index.html if the requested file or directory doesn’t exist.</li><li>Ensures that React Router can handle routing properly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP_60t3f5uxSGiLGKDN5Zw.png" /><figcaption>.htaccess file in cPanel File Manager</figcaption></figure><blockquote><strong><em>Tip:</em></strong><em> Make sure your </em><em>.htaccess file is in the same directory as </em><em>index.html. Permissions should be set to 644.</em></blockquote><h3>Step 5: Test Your Deployment</h3><p>After uploading and configuring your app, it’s time to test it.</p><ol><li>Open your browser and navigate to your domain (e.g., <a href="https://yourdomain.com/">https://yourdomain.com</a>).</li><li>Test your homepage and other pages to ensure navigation works correctly.</li><li>Inspect the console for errors (press F12 to open Developer Tools).</li><li>Verify that assets (images, CSS, JS) are loading without errors.</li></ol><h4>If something isn’t working:</h4><ul><li>Check that the files are in the correct directory.</li><li>Verify your .htaccess rewrite rules.</li><li>Ensure the build process completed without errors.</li></ul><h3>Step 6: Optional Enhancements</h3><h4>Enable Compression</h4><ul><li>Turning on gzip or Brotli compression in cPanel can improve loading speed.</li></ul><h4>Use a CDN</h4><ul><li>For faster asset delivery worldwide, consider linking your app to a Content Delivery Network (CDN) like Cloudflare.</li></ul><h4>Implement HTTPS</h4><ul><li>If your hosting supports it, enable SSL to serve your app securely via HTTPS.</li></ul><h3>Common Pitfalls to Avoid</h3><ul><li><strong>Nested Build Folders:</strong> Extracting build.zip into a subfolder inside public_html can cause routing issues.</li><li><strong>Caching Issues:</strong> Browser caching may show old content. Clear cache if changes don’t appear.</li><li><strong>Incorrect </strong><strong>.htaccess Rules:</strong> Even a small typo can break routing. Double-check the file.</li></ul><h3>Conclusion</h3><p>Deploying a React.js app on shared hosting may seem complex, but following these steps ensures a smooth process:</p><ol><li>Build your app for production.</li><li>Compress and upload the build folder.</li><li>Configure server routing with .htaccess.</li><li>Test your deployment thoroughly.</li><li>Optionally, enhance performance with compression, CDN, and HTTPS.</li></ol><p>With this approach, even beginners can deploy React apps successfully on shared hosting using cPanel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9af77b402b89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Drawing Sequence Diagrams: The Secret to Ballerina’s Self-Documenting Code]]></title>
            <link>https://medium.com/@kulitha2003/stop-drawing-sequence-diagrams-the-secret-to-ballerinas-self-documenting-code-2ae26326574c?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae26326574c</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 10:56:25 GMT</pubDate>
            <atom:updated>2025-11-27T10:57:19.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*_9718Wan1tg05WTxwLPTTw@2x.jpeg" /></figure><h3>1. The Core Problem: Documentation Drift</h3><p>Every developer knows the pain: documentation becomes outdated the moment the code is merged.</p><p>This is especially true in integration projects and microservices, where we rely heavily on <strong>sequence diagrams</strong> to explain system behavior:</p><ul><li>Client → Service A</li><li>Service A → Service B</li><li>Service B → Database</li><li>Response flows all the way back up</li></ul><p>We spend hours drawing these diagrams in Visio, Draw.io, or Figma.<br> A single pull request breaks everything.<br> Engineers stop trusting the documentation.</p><p><strong>Ballerina</strong> was designed specifically to eliminate this problem through a concept called <strong>Code–Diagram Parity</strong>.</p><h3>2. Ballerina’s Superpower: Code is Diagram</h3><p>Ballerina is the only major programming language created from the ground up for <strong>integration</strong> and engineered so that:</p><h4>The text code and sequence diagram are two equal representations of the same logic.</h4><p>This is not reverse-engineering.</p><ul><li>When you edit the code, the diagram updates instantly.</li><li>When you modify the diagram, the code updates instantly.</li><li>There is zero drift, zero manual syncing, zero outdated documentation.</li></ul><p>This feature is built into the <strong>Ballerina compiler and the Visual Studio Code extension</strong>.</p><p>For integration engineers — especially in WSO2 ecosystems — this is a game changer.</p><h3>3. Practical Demo: Visualizing a Weather API Proxy</h3><p>To demonstrate the visual behavior, let’s build a simple <strong>Weather API Proxy Service</strong>.<br> This creates a clear multi-lifeline sequence diagram:</p><ul><li>External client</li><li>The proxy service</li><li>The external weather API</li></ul><h4>3.1 Prerequisites</h4><p>You need two tools:</p><ul><li><strong>Ballerina (Swan Lake)</strong> — latest stable version from ballerina.io</li><li><strong>Ballerina VS Code Extension</strong> — to enable diagram view</li></ul><h4>⚠ Important Safety Note (100% accuracy ensured)</h4><p>Some Ballerina versions do <strong>not allow </strong><strong>check new(...) at module level</strong>.<br> To avoid compiler errors, this guide uses a <strong>safe initialization pattern</strong> inside the init() function.</p><p>This guarantees the code works on all Swan Lake releases.</p><h4>3.2 Write the Integration Code</h4><p>Create a file named <strong>proxy_service.bal</strong><br> Paste the following <strong>safe and verified code</strong>:</p><pre>import ballerina/http;<br>import ballerina/io;<br><br><br>// Declare a module-level http:Client (not initialized yet)<br>http:Client weatherClient;<br>// Init function safely initializes all clients/resources<br>function init() returns error? {<br>    // Initialize the external weather API client<br>    weatherClient = check new (&quot;https://api.weatherapi.com/v1&quot;);<br>}<br>service /api/v1 on new http:Listener(9090) {<br>    @display { label: &quot;Weather Service Resource&quot; }<br>    resource function get current(<br>        @display { label: &quot;Client&quot; } http:Caller client,<br>        http:Request req<br>    ) returns error? {<br>        io:println(&quot;Incoming request received...&quot;);<br>        // 1. External API call<br>        json weatherData = check weatherClient-&gt;get(<br>            &quot;/current.json?key=YOUR_KEY&amp;q=Colombo&quot;<br>        );<br>        // 2. Respond to the client<br>        check client-&gt;respond(weatherData);<br>    }<br>}</pre><h4>Why this code is 100% safe:</h4><ul><li>Client initialization is inside init() → <strong>no module-init failures</strong>.</li><li>Syntax follows the official Swan Lake service structure.</li><li>Works with the VS Code diagram view instantly.</li></ul><h4>3.3 Generate the Diagram</h4><ol><li>Open the file in <strong>VS Code</strong>.</li><li>Click the <strong>Ballerina Diagram icon</strong> (flowchart icon on the top-right).</li><li>The sequence diagram appears instantly.</li></ol><h4>What you will see:</h4><ul><li>A lifeline for the client calling /current</li><li>A call from your service → the Weather API</li><li>A response back to the original client</li></ul><p>This single diagram becomes your <strong>living documentation</strong>.</p><h3>4. Pro Tip: Customizing the Diagram with @display</h3><p>Ballerina supports annotations that affect only <strong>visual presentation</strong>, not runtime logic.</p><p>You can rename lifelines or hide complexity:</p><pre>@display { label: &quot;Weather Service Resource&quot; }<br>resource function get current(<br>    @display { label: &quot;Client&quot; } http:Caller client,<br>    http:Request req<br>) returns error? { ... }</pre><p>This lets you create clean, intentional diagrams suitable for architecture reviews or documentation.</p><h3>5. Why This Matters</h3><p>Ballerina addresses one of the biggest pain points in integration engineering:<br> <strong>keeping diagrams and code synchronized</strong>.</p><p>For organizations building APIs, microservices, and integration layers — like WSO2’s middleware stack — this feature ensures:</p><ul><li>Always up-to-date documentation</li><li>Cleaner code reviews</li><li>Faster onboarding</li><li>Visual clarity when debugging</li><li>Zero drift across feature branches</li></ul><p>Ballerina turns sequence diagrams from “manual assets that age and rot” into <strong>compiler-generated documentation</strong>.</p><h3>Conclusion</h3><p>You no longer need to redraw sequence diagrams manually, maintain Visio files, or worry about documentation going stale.</p><p>Ballerina lets you <strong>write the code and get the diagram for free</strong> always accurate, always synchronized.</p><p>If you build integration services, proxies, APIs, or event-driven flows, this is one of the most powerful tools you can add to your workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae26326574c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging OAuth2 Like a Pro: Connect WSO2 Identity Server to OIDC Debugger]]></title>
            <link>https://medium.com/@kulitha2003/debugging-oauth2-like-a-pro-connect-wso2-identity-server-to-oidc-debugger-2675edecf474?source=rss-01b77e4fe8bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2675edecf474</guid>
            <dc:creator><![CDATA[Kulitha Jayasinghe]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 08:30:56 GMT</pubDate>
            <atom:updated>2025-11-27T08:37:21.001Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgjbsg1d5pnEFVoWW9105Q@2x.jpeg" /></figure><h3><strong>The Problem Everyone Faces</strong></h3><p>If you’ve ever tried to integrate a frontend application with WSO2 Identity Server, you already know the pain. You finish building your React or Angular app… and suddenly you’re staring at:</p><ul><li>CORS blocked</li><li>401 Unauthorized</li><li>Invalid redirect URL</li><li>Browser SSL warnings</li></ul><p>And now you’re stuck asking:<br> <strong>“Is my code wrong, or is my Identity Provider misconfigured?”</strong></p><p>The fastest way to isolate the problem is to test your <strong>WSO2 Identity Server (WSO2 IS)</strong> using a trusted online tool — <strong>OIDC Debugger</strong> — before touching any frontend code.</p><p>This article shows you how to do that in a clean, predictable, error-free way.</p><h3>Why Use OIDC Debugger?</h3><p>OIDC Debugger behaves like a real OAuth2/OIDC client. It helps you:</p><ul><li>Test the <strong>Authorization Code Flow</strong></li><li>Verify redirect URIs</li><li>Confirm authentication works</li><li>Inspect your Access Token &amp; ID Token</li><li>Isolate backend issues before developing your UI</li></ul><p>All <strong>without writing a single line of frontend code</strong>.</p><h3>What We’re Testing (Quick Explanation)</h3><p>We will simulate the <strong>Authorization Code Flow</strong>, the most secure OAuth2 method used by modern web apps:</p><ol><li>OIDC Debugger sends a login request to WSO2 IS.</li><li>WSO2 IS asks the user to log in.</li><li>After login, WSO2 IS returns an <strong>authorization code</strong>.</li><li>OIDC Debugger exchanges it for:</li></ol><ul><li>an <strong>Access Token</strong></li><li>an <strong>ID Token</strong> containing your user identity</li></ul><p>If this works, your Identity Provider is configured correctly.</p><h3>Prerequisites</h3><ul><li><strong>WSO2 Identity Server 7.0.0</strong> running locally<br> Console URL: <a href="https://localhost:9443/console">https://localhost:9443/console</a></li><li>Browser: Chrome or Firefox</li><li>Default credentials for testing:<br> <strong>admin / admin</strong></li></ul><blockquote>This guide is fully accurate for WSO2 IS 7.0.0’s interface and endpoints.</blockquote><h3>Step 1 — Configure WSO2 Identity Server</h3><h4>1. Log in to the Console</h4><p>Visit:<br> <a href="https://localhost:9443/console">https://localhost:9443/console</a></p><p>Sign in with admin credentials.</p><h4>2. Create a New Application</h4><p>Go to:<br> <strong>Develop → Applications → + New Application → Standard-Based Application</strong></p><p>Name the application:</p><pre>OIDCDebuggerTest</pre><p>Click <strong>Next</strong>.</p><h4>3. Set the Redirect URI</h4><p>You’ll see a field called <strong>Authorized Redirect URLs</strong>.</p><p>Enter exactly:</p><pre>https://oidcdebugger.com/debug</pre><p><strong>Important:</strong></p><ul><li>No trailing slash</li><li>Typing mistakes cause “Invalid Callback URL” errors</li></ul><p>Click <strong>Register.</strong></p><h4>4. Copy Your Credentials</h4><p>After creation, open the <strong>Protocol</strong> tab.</p><p>Save these two values:</p><ul><li><strong>Client ID</strong></li><li><strong>Client Secret</strong> (click the eye icon to reveal)</li></ul><p>You’ll need them in the next step.</p><h3>Step 2 — Configure OIDC Debugger</h3><p>Open OIDC Debugger:<br> <a href="https://oidcdebugger.com/">https://oidcdebugger.com/</a></p><p>Fill these fields <strong>exactly</strong>:</p><p><strong>Authorize URI — </strong><a href="https://localhost:9443/oauth2/authorize">https://localhost:9443/oauth2/authorize</a><br><strong>Token URI — </strong><a href="https://localhost:9443/oauth2/token">https://localhost:9443/oauth2/token</a><br><strong>Redirect URI — </strong>https://oidcdebugger.com/debug<br><strong>Client ID — </strong><em>(paste yours)<br></em><strong>Client Secret — </strong><em>(paste yours)<br></em><strong>Scope — </strong>openid profile <br><strong>Response Type — </strong>code <br><strong>Response Mode — </strong>form_post</p><p>Leave <strong>State</strong> and <strong>Nonce</strong> as they are.<br>They protect against replay attacks and WSO2 expects them.</p><h3>Step 3 — Run the Test</h3><ol><li>Click <strong>Send Request</strong> in OIDC Debugger.</li><li>You will be redirected to WSO2 IS’s login page.</li><li>Log in using <strong>admin/admin</strong>.</li><li>If consent appears, click <strong>Continue</strong>.</li></ol><p>If everything is correct, OIDC Debugger will show a <strong>green success banner</strong> and display your decoded ID Token.</p><p>Your user identifier (sub) will typically appear as:</p><pre>&quot;sub&quot;: &quot;admin&quot;</pre><p>That means your server is working correctly.</p><h3>Common Errors and How to Fix Them</h3><h4>1. “Invalid Callback URL”</h4><p>Most common issue.<br> Fix: Make sure the redirect URL in WSO2 IS matches exactly:</p><pre>https://oidcdebugger.com/debug</pre><p>No slash at the end.</p><h4>2. SSL Warnings</h4><p>WSO2 IS uses a self-signed certificate locally.<br> You can safely click <strong>Proceed</strong> during local testing.</p><h4>3. Wrong Response Mode</h4><p>WSO2 expects:</p><pre>form_post</pre><p>Choosing query may fail depending on configuration.</p><h4>4. Using the Wrong Endpoint</h4><p>Correct authorize endpoint:</p><pre>https://localhost:9443/oauth2/authorize</pre><p><em>Not</em> /oauth<br> <em>Not</em> /oidc<br> <em>Not</em> /authorize alone.</p><h3>Conclusion</h3><p>You’ve now confirmed that WSO2 Identity Server is:</p><ul><li>Accepting OAuth2/OIDC requests</li><li>Redirecting correctly</li><li>Authenticating users</li><li>Issuing valid tokens</li></ul><p>This eliminates backend uncertainty and gives you a clean foundation before integrating your actual application.</p><p>Once this test works, you can confidently proceed with your real frontend implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2675edecf474" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>