Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4237528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:47:07+00:00 2026-05-21T02:47:07+00:00

I run a website which shows related articles widget that people can add on

  • 0

I run a website which shows related articles widget that people can add on their websites.

Currently what my system does when a link is clicked in that widget it redirects to a link on my website and then redirects it back to related article that was clicked on. This process is to record the statistics for clicks.

Lately what some people have been doing is copy my link and than reload that in an iframe, which is causing unnecessary load on my system.

What I was thinking is that to trick the tricksters, I would create a link where the user comes in on my website, then I would internally from my website redirect the user to another link on my website where there is an iframe breaking script (i need an example of how to implement this) and a redirect to the related article. This means all the people trying to DDOS my site will have to comeup with something new.
What code would you suggest to prevent people from loading my widget in an iframe?
What code would you suggest to prevent hardcore DDOS?

Another issue I had was that related articles don’t always receive my url as the referrer, which means that the user can exactly track the traffic from the widget. How can I solve this problem as well?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:47:08+00:00Added an answer on May 21, 2026 at 2:47 am

    redirect the user to another link on my website where there is an iframe breaking script (i need an example of how to implement this)

    This is called “frame busting” or “frame killing“, and it’s usually as simple as determining if you’re the “top”-most window in the current frameset:

    <script type="text/javascript">
      if(top != self) top.location.replace(location);
    </script>
    

    As documented on the linked Wikipedia page, there are possible countermeasures.

    Another issue I had was that related articles don’t always receive my url as the referrer

    Many browsers make it possible to simply turn of sending referrers. You won’t be able to do anything about that. If you want to ensure that the remote site knows that your site sent it the traffic, consider a specific query string parameter as part of the redirect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Listed on the ServiceStack website it shows that ServiceStack can run on Mono with
Can I make my own jabber server.So that if I run my website xyz
I have python script which downloads N number of images from website. I run
I run a website where we mark certain accounts as scammers, and flag their
I am currently using XAMPP to test and Run my website on my Laptop.
I am developing a simple ASP.NET website that will run on the intranet on
I've got a SharePoint website running on my machine (which it shows me inside
I'm writing a report that shows total downtime for our website. When a user
I am trying to implement a system on my website similar to that of
We are making a website for a client at work, which can be found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.