Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to block redirect to other site from iptables?
- I would like to know how can I block redirect to any http:// using ip tables. So that user on my website don't redirect to any other website even I place code in my page.
- Will this work?
- ++++++++++++++
- If You want to buy cheap web hosting then visit http://Listfreetop.pw and select the cheapest hosting. it can be suitable for all your needs.
- Top 200 best traffic exchange sites http://Listfreetop.pw/surf
- list of top gpt sites
- list of top ptc sites
- list of top ptp sites
- list of top crypto currency Wallets sites
- Listfreetop.pw
- Listfreetop.pw
- Listfreetop.pw
- +++++++++++++++
- iptables -A OUTPUT -p tcp -m string --string "http://" --algo kmp -j REJECT --reject-with tcp-reset
- Kindly let me know.
- Do you want to prevent users from visiting any HTTP link on your site? I am not sure what you mean by the redirect. Are you referring to .htaccess redirection?
- Do you want to prevent users from visiting any HTTP link on your site? I am not sure what you mean by the redirect. Are you referring to .htaccess redirection?
- Thank you for reply. I am in a situation where a hacker using chrome dev tool to redirect my php page and when I visit that page it redirect me to his website. There is no such redirect in my php page but he is doing it from external chrome dev tool and redirecting is only happening from chrome browser. I can not block chrome browser agent.
- So I was thinking if there is any way I can prevent that from happening by iptables like blocking outgoing traffic from that page to his website as long as browser is open? or any suggestion will be very helpful.
- Market Research
- It can probably be implemented through SELinux, but it is going to take a lot of effort.
- I can not think of any way to achieve this using iptables though because there is no new TCP/UDP connection during the redirection as per my understanding of the issue. I am not sure if it can be classified as outgoing traffic. You can block ports 80 and 443 for outward connections though.
- It can probably be implemented through SELinux, but it is going to take a lot of effort.
- I can not think of any way to achieve this using iptables though because there is no new TCP/UDP connection during the redirection as per my understanding of the issue. I am not sure if it can be classified as outgoing traffic. You can block ports 80 and 443 for outward connections though.
- block port 80 will block my site too.
- Market Research
- It won't block. Your web server listens to incoming connections to serve websites, not outward connections.
- Could you please let me know the iptable for that
- iptables -A OUTPUT -p tcp -m string --string "80" --algo kmp -j REJECT --reject-with tcp-reset
- ?
- Will this work?
- Market Research
- Thank you for reply. I am in a situation where a hacker using chrome dev tool to redirect my php page and when I visit that page it redirect me to his website. There is no such redirect in my php page but he is doing it from external chrome dev tool and redirecting is only happening from chrome browser. I can not block chrome browser agent.
- So I was thinking if there is any way I can prevent that from happening by iptables like blocking outgoing traffic from that page to his website as long as browser is open? or any suggestion will be very helpful.
- You're tackling this problem the wrong way. If someone is able to perform a redirect on your page either:
- A) Backend is compromised
- B) You have an XSS exploit on your page
- C) Your browser is compromised
- None of these are solved by firewall rules. You should find the source of the problem instead and fix that instead.
- Afterburst - The best unmetered VPS
- ehosting
- trafficjenie.info
- hosting dude
- z hostel irkutsk
- cryptocoins.neocities.org
- host vip
- make money in rdr2 online
- t hostel
- domain 2 and 3
- 3 hostages north korea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement