Patent attributes
The present disclosure provides a method and an apparatus for advertisement anti-blocking in the technical field of internet. The method includes receiving a first access request of a terminal for a target webpage, and obtaining webpage content of the target webpage; rewriting uniform resource locators (URLs) at a plurality of levels in the webpage content into corresponding anti-blocking URLs according to a preset encryption algorithm, and returning rewritten webpage content to the terminal; restoring the anti-blocking URLs to the URLs at the plurality of levels according to a preset decryption algorithm, when receiving second access requests of the terminal for the anti-blocking URLs; and obtaining resources pointed to by the URLs at the plurality of levels and returning the resources to the terminal. By using the present disclosure, the cost of advertisement anti-blocking for a website provider can be reduced.

