Question

Is there a way to prevent programs like Firebug from manipulating the DOM of a page.

I've noticed that you can simply delete thing like ads that are paid for by other companies.

Is there a way for the page to stop it?

Was it helpful?

Solution

Can you prevent me from switching to another channel on TV, or from cutting away ads from my newspaper? No. Same thing with my PC.

In other words: the page is in the client's computer, and the client can do whatever they wish with it.

OTHER TIPS

The simple answer is no.

The long answer: if you construct your ads from many unrelated absolute-positioned elements, it will be next to impossible to delete them.

The right answer: if your ads are so obtrusive that you have to worry about people deleting them, then you should rethink your business.

Firebug runs in the context of the displayed page, and since pages' scripts can alter dom and delete things, firebug can too.

However you can run some javascript to check if the ad is deleted, and restore it, but still that javascript can be stopped/disabled with firebug.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top