HElp me Remove ads by "preg_replace" plz

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

10 replies · 1,075 views · started 14 years ago · 1 min read

6 participants
BDplanet Junior · 37 posts #1

im using 123musiq.mobi grabber, but unable2 remobing button ads mylink here

<?php
// Created By lov3rboy90@gmail.com // Lov3rBoy90 // Don Of PhP :P
// SEO In Grabber :)
include"google.php";
include "func.php";
$mdir=$_GET['mdir'];
$getit=$_GET['get'];
if($getit){
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title> Rexmob.CoM- Latest Bollywood songs download Tamil songs download Malayalam Songs download Kannada songs download Telugu songs download High Quality Compressed mp3 songs downloads.</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="handheld,all"/>
<link rel="shortcut icon" href="../favicon.ico" />
<title><?php echo $mdir;?> MP3 Songs | Your Site Name</title>
<meta name="description" content="
Download <?php echo $mdir;?> mp3 Free Songs
Section: <?php echo $mdir;?> Songs
category: Free Mobile <?php echo $mdir;?> mp3 songs
Filetype: mp3 files" />
<meta name="keywords" content="free, download, latest,<?php echo $mdir;?> songs,<?php echo $mdir;?> mp3 songs,mp3 songs" />
</head><body>
<div class="class">Your Site</div><br>
<?php
$coolurl="http://123musiq.mobi/$getit";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);
$file=preg_replace('/<div class="home">(.*?)<\/html>/','',$file);
$file=preg_replace('/<div class="head">(.*?)<\/div>/is','',$file);
$file=preg_replace('/<a style="color:red;font-weight:bold" href="\/links.php?(.*?)<\/a>/is','',$file);
$file=preg_replace('/<a href="\/links.php?(.*?)<\/a>/is','',$file);
$file=preg_replace('/<a href="http:\/\/c.w.inmobi.com(.*?)<\/a>/','',$file);
$file=preg_replace('/<title>(.*?)<\/title>/is','',$file);
$file=str_replace('href="/albums/track/','href="get.php?mdir='.$mdir.'&cool=albums/track/',$file);
$file=str_replace('href="/songs/track/','href="get.php?mdir='.$mdir.'&cool=songs/track/',$file);
$file=str_replace('href="/albums/share','href="http://123musiq.mobi/albums/share',$file);
$file=preg_replace('/<div class="home">(.*?)<\/div>/is','',$file);
$file=str_replace('href="/songs/share','href="http://123musiq.mobi/songs/share',$file);
$file=preg_replace('/<script(.*?)<\/script>/is','',$file);
$file=str_replace('href="/','href="don.php?mdir='.$mdir.'&get=',$file);
$file=preg_replace('/<href="http:\/\/tubta(.*?)<\/a>/is','',$file);
$file=preg_replace('/<(.*?)<div class="hello">/is','<div class="cool3">',$file);
$file=preg_replace('/<\/div>(.*?)<div class="box">/','</div><div class="box">',$file);
$file=preg_replace('/<img src="\/music.gif(.*?)>/','',$file);
$file=str_replace('src="/','src="http://123musiq.mobi/',$file);
$file=preg_replace('/<div class="box"> <a href="http:\/\/(.*?)<\/a>(.*?)<hr \/>/','',$file);
$file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
$file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
$file=preg_replace('/<hr \/> <a href="http:\/\/(.*?)<hr \/><\/div><div class="box2">/','<hr /><div class="box2">',$file);
$file=preg_replace('|<form(.*?)<\/form>|is','',$file);
$file=preg_replace('/<div class="infoblue">(.*?)<\/div>/','',$file);

$file=str_replace('/<a href="http:\/\/my.mobfox(.*?)<\/a><br\/>/','',$file);
$file=preg_replace('/<a href="http:\/\/ads.adiquity(.*?)<\/a><br\/>/','',$file);

echo $file;

echo "<div><a href='index.php'>Back to Home</a></div>";
}else{ echo "Were R u Came From? Go <a href='index.php'>Home</a>";}
// Created By lov3rboy90@gmail.com // Lov3rBoy90 // Don Of PhP :P
// SEO In Grabber :)
?>

i want remove adiquity and mobfox ads i try this but not work

$file=str_replace('/<a href="http:\/\/my.mobfox(.*?)<\/a><br\/>/','',$file);
$file=preg_replace('/<a href="http:\/\/ads.adiquity(.*?)<\/a><br\/>/','',$file);
arnage Lead · 811 posts #2

Whole link must be written in here.

$file = str_replace(array('<a href WHOLE LINK TO </a>', 
'<a href WHOLE LINK TO </a>'), '', $file);

And its not "SEO In Grabber" it is "CEO In Grabber". 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
metulj Super moderator Principal · 1,726 posts #4

GumSlone wrote: i think wee need a lol button, wich works like a thanks button 🙄

yes... YES... ! just... mostly we should have LMFAO button instead simple LOL 🙄 and an upgrade to that button should be... after user receive more than 10 LOLs, he should get randomly kicked for each LOL he receives PMPL <= that might be fun hhhh...

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

arnage Lead · 811 posts #5

Yeah yeah yeah yeah, i mean really... 🤣

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
BDplanet Junior · 37 posts #9

something else wrote: Should Expect Outrageousness?

Added after 2 minutes:

Danger Oncoming Nerd?

HE HE nice bydaby im not author of this script and im not da DON :lollllllllllllllllllll

i just trying to remove ads from his grabber and using my site if u any body can hide that ads , dan reply why u r all not given me solution....... i say i try it but not sucess. plz fix dis..................................1😍22

something else Fellow · 2,296 posts #10

you have to a string replacement on \n \r\n \r and also trim the string of any white spaces so that preg_replace will work properly then use:

$file=preg_replace('/<a href="http:\/\/(.*?)ads.adiquity(.*?)<\/a>/','',$file);// no <br/> on that line :P

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close