how to add a prefix before external urls automatically in php -


i want open every external url in new page redirection.

these external links shown on page

www.pppexample.com
www.pp2example.com

i want open every external url in format..

http://www.domain.com/redirector.php?url=http://www.anyexternalurl.com... 

i using php haven't figured out.

the auto_append_file directive can set file executed after main php file. file can parse contents of output buffer, modify links in way want them , print out the modified html.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -