How do ads blocker extensions work? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was wondering what is the idea behind ads blockers browser extensions?
I want to develop such an extension but first i want to understand how do they do their magic. So, how do they work?

These extensions use filter lists, filter lists are essentially an extensive set of rules that tell Adblockers which elements of a website to block. You can add any filter list you want. For example, block tracking or malware.
All filters are translated into regular expressions internally, even the ones that haven't been specified as such. For example, the filter ad*banner.gif| will be translated into the regular expression /ad.*banner.gif$/.
Follow the link given below to get a good idea of internal working of those extensions:
https://adblockplus.org/faq_internal

Related

How can we mitigate shopping-cart checkout spamming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
We have an e-commerce site that allows you to check out as a guest.
An individual has been using it to check if stolen credit card numbers function.
We plan to add invisible captcha, which helps for people using scripts/headless browsing/automation, but it doesn't stop someone from manually using it this way.
We could track a cookie that starts to prevent/timeout the user from checking out if there are enough recent requests, but that's easily workaround-able.
It seems like a situation where it can't be limited too much further because normal users need to be able to check out, but are there any other specific methods that would help?

Can I enable javascript directly from my site? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to know if it is possible with the help of a button for example, to allow the user to enable javascript or disable it (but only enable it interests me) directly from our site.
That is to say, I have a website that needs javascript for animations or whatever and I would like everyone to be able to access it.
So make available to people a button to enable javascript if it is disabled.
Do you know what I'm talking about?
Is this possible? Or am I dreaming?
And if so, do you have any leads?
Not possible, but the best you can do is add a <noscript> tag with a message specifically for people without JS enabled. A huge majority of people keep JS enabled and never change this preference though.
Example:
<noscript>
<h1>Please enable JavaScript in your browser for the best possible experience.</h1>
</noscript>

Embeddable Website Viewer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to do something kind of like Google's embeddable pdf viewer except I want to be able to embed a website and be able to view that on my website.
Specifically because I have many different teachers and they all use something called Planbook for their assignments, so I want to be able to view all of them at once. Also, I think it would help some other students.
So, does anyone know of a way to do this?
A quick way to acheive this is to use the HTML iframe. It displays a frame of another webpage, an example usage is <iframe src="http://www.w3schools.com"></iframe>. Also see this link for some more basic info.

A way to determine whether or not a website validates [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am developing a service, and it needs to be able to determine whether or not a specific website on the internet validates (with 0 errors).
Does the W3C have an API?
Also, I would like to be able to do a browser-by-browser test. I mean, I would also like to be able to tell if [the first criteria cannot be met] any 1 (or more) particular website(s) fail(s) to validate (with 0 errors). Is this currently possible?
I am still searching, but have yet to find this out.
The W3C has APIs for both their HTML and CSS validators.
The HTML validator docs are found at: http://validator.w3.org/docs/api.html
The CSS validator docs are found at: http://jigsaw.w3.org/css-validator/api.html

Is it possible to block end users from using Javascript to trigger events? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
As an example, let's assume I want to prevent users from using auto-clickers. Is it possible, and are there accepted best practices when doing this?
Nope, it is not possible. Someone can always turn off JavaScript, modify it, run their own JS-code, etc, etc. JavaScript should never ever be used for security reasons.
However, for AJAX-requests you could implement a minimum interval server-side (like on Stack Overflow).

Categories