Welcome! Log In Create A New Profile

Advanced

Practical Code rewrite/replace/Inject Into Pages

Posted by bbogdan 
Practical Code rewrite/replace/Inject Into Pages
November 02, 2014 04:12PM
Hi Guys,

I'm currently working on this so i might have a solution in but i wanted to ask anyway.

Scenario:

Someone is hjacking your google rating by using hacked sites and remote website load.

example www.domain.com/product.html your site. Hijacking site www.domain2.com/product.php?url=product.html which in turns loads the content from your servers.
I can do refblock/iptables etc but that is no what i want.

What i want is to inject custom html/js/php code into the reply based on the site's domain. My though is to use the hijacking site and hijackers work against them by getting my traffic back via a custom java script/php injection.

The nginx that serves the request is a Reverse Proxy.

I was thinking using the sub_filter module. i add a block of js on my pages that does nothing by default and use the sub to change it based on referal_url.

Thanks!
Bogdan
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready